aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/LTO/LTO.cpp
diff options
context:
space:
mode:
authorMatt Arsenault <Matthew.Arsenault@amd.com>2025-08-15 09:55:39 +0900
committerGitHub <noreply@github.com>2025-08-15 09:55:39 +0900
commitcb1228fbd535b8f9fe78505a15292b0ba23b17de (patch)
tree67e847fc596aacc24f9eb5ac6aa9b7ba614e995f /llvm/lib/LTO/LTO.cpp
parent0226e9449176f476c0a989ac66762f45e9db9f82 (diff)
downloadllvm-cb1228fbd535b8f9fe78505a15292b0ba23b17de.zip
llvm-cb1228fbd535b8f9fe78505a15292b0ba23b17de.tar.gz
llvm-cb1228fbd535b8f9fe78505a15292b0ba23b17de.tar.bz2
RuntimeLibcalls: Return StringRef for libcall names (#153209)
Does not yet fully propagate this down into the TargetLowering uses, many of which are relying on null checks on the returned value.
Diffstat (limited to 'llvm/lib/LTO/LTO.cpp')
-rw-r--r--llvm/lib/LTO/LTO.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/LTO/LTO.cpp b/llvm/lib/LTO/LTO.cpp
index 0323b4d..35d24c1 100644
--- a/llvm/lib/LTO/LTO.cpp
+++ b/llvm/lib/LTO/LTO.cpp
@@ -1422,7 +1422,7 @@ SmallVector<const char *> LTO::getRuntimeLibcallSymbols(const Triple &TT) {
for (RTLIB::LibcallImpl Impl : LibcallImpls) {
if (Impl != RTLIB::Unsupported)
- LibcallSymbols.push_back(Libcalls.getLibcallImplName(Impl));
+ LibcallSymbols.push_back(Libcalls.getLibcallImplName(Impl).data());
}
return LibcallSymbols;