summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2015-12-09 20:41:10 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2015-12-09 20:41:10 +0000
commit9edc3b8403e69e30c6ccba87a32140b8f4b87bf2 (patch)
tree8324c607517257db53ba9662c63384c4ea0d4a2d
parent9abfb0b4291e47bea6e8dd267d155003a323b070 (diff)
downloadbcm5719-llvm-9edc3b8403e69e30c6ccba87a32140b8f4b87bf2.tar.gz
bcm5719-llvm-9edc3b8403e69e30c6ccba87a32140b8f4b87bf2.zip
Don't assign a temporary string to a StringRef.
Should fix the windows debug and asan bots. llvm-svn: 255149
-rw-r--r--llvm/lib/Transforms/IPO/FunctionImport.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/IPO/FunctionImport.cpp b/llvm/lib/Transforms/IPO/FunctionImport.cpp
index c9874fc3714..6325a726673 100644
--- a/llvm/lib/Transforms/IPO/FunctionImport.cpp
+++ b/llvm/lib/Transforms/IPO/FunctionImport.cpp
@@ -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.") +
OpenPOWER on IntegriCloud