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
This commit is contained in:
Rafael Espindola 2015-12-09 20:41:10 +00:00
parent 587b47add0
commit e919414c03

View 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.") +