From e919414c036814772f8756fa7428bfe8d7a96617 Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Wed, 9 Dec 2015 20:41:10 +0000 Subject: [PATCH] Don't assign a temporary string to a StringRef. 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Transforms/IPO/FunctionImport.cpp b/lib/Transforms/IPO/FunctionImport.cpp index c9874fc3714..6325a726673 100644 --- a/lib/Transforms/IPO/FunctionImport.cpp +++ b/lib/Transforms/IPO/FunctionImport.cpp @@ -91,7 +91,7 @@ static void findExternalCalls(const Module &DestModule, Function &F, SmallVector &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.") + -- 2.34.1