We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 226c6e5 commit 7795be6Copy full SHA for 7795be6
llvm/include/llvm/CodeGen/LibcallLoweringInfo.h
@@ -54,11 +54,12 @@ class LibcallLoweringInfo {
54
/// unsupported.
55
LLVM_ABI StringRef getMemcpyName() const {
56
RTLIB::LibcallImpl Memcpy = getLibcallImpl(RTLIB::MEMCPY);
57
- if (Memcpy != RTLIB::Unsupported)
58
- return RTLIB::RuntimeLibcallsInfo::getLibcallImplName(Memcpy);
+ if (Memcpy == RTLIB::Unsupported) {
+ // Fallback to memmove if memcpy isn't available.
59
+ return getLibcallName(RTLIB::MEMMOVE);
60
+ }
61
- // Fallback to memmove if memcpy isn't available.
- return getLibcallName(RTLIB::MEMMOVE);
62
+ return RTLIB::RuntimeLibcallsInfo::getLibcallImplName(Memcpy);
63
}
64
};
65
0 commit comments