Don't assign a temporary string to a StringRef.
authorRafael Espindola <rafael.espindola@gmail.com>
Wed, 9 Dec 2015 20:41:10 +0000 (20:41 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Wed, 9 Dec 2015 20:41:10 +0000 (20:41 +0000)
Should fix the windows debug and asan bots.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@255149 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/IPO/FunctionImport.cpp

index c9874fc371496aa091bcad484498a34fef96d186..6325a726673ee0f57709194dae66e20b203e5a28 100644 (file)
@@ -91,7 +91,7 @@ static void findExternalCalls(const Module &DestModule, Function &F,
                               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.") +