[llvm] r255149 - Don't assign a temporary string to a StringRef.
Rafael Espindola via llvm-commits
llvm-commits at lists.llvm.org
Wed Dec 9 12:41:11 PST 2015
Author: rafael
Date: Wed Dec 9 14:41:10 2015
New Revision: 255149
URL: http://llvm.org/viewvc/llvm-project?rev=255149&view=rev
Log:
Don't assign a temporary string to a StringRef.
Should fix the windows debug and asan bots.
Modified:
llvm/trunk/lib/Transforms/IPO/FunctionImport.cpp
Modified: llvm/trunk/lib/Transforms/IPO/FunctionImport.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/IPO/FunctionImport.cpp?rev=255149&r1=255148&r2=255149&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/IPO/FunctionImport.cpp (original)
+++ llvm/trunk/lib/Transforms/IPO/FunctionImport.cpp Wed Dec 9 14:41:10 2015
@@ -91,7 +91,7 @@ static void findExternalCalls(const Modu
SmallVector<StringRef, 64> &Worklist) {
// We need to suffix internal function calls imported from other modules,
// prepare the suffix ahead of time.
- StringRef Suffix;
+ std::string Suffix;
if (F.getParent() != &DestModule)
Suffix =
(Twine(".llvm.") +
More information about the llvm-commits
mailing list