forked from OSchip/llvm-project
[llc] Fix sanitizer failure.
Store the string on the stack rather than just the StringRef. Fix sanitizer bots: http://lab.llvm.org:8011/builders/sanitizer-x86_64-linux-fast/builds/19948 http://lab.llvm.org:8011/builders/sanitizer-x86_64-linux-bootstrap-msan/builds/5500 llvm-svn: 335423
This commit is contained in:
parent
12728474b3
commit
77fa07264a
|
@ -504,7 +504,7 @@ static int compileModule(char **argv, LLVMContext &Context) {
|
|||
// Verify module immediately to catch problems before doInitialization() is
|
||||
// called on any passes.
|
||||
if (!NoVerify && verifyModule(*M, &errs())) {
|
||||
StringRef Prefix =
|
||||
std::string Prefix =
|
||||
(Twine(argv[0]) + Twine(": ") + Twine(InputFilename)).str();
|
||||
WithColor::error(errs(), Prefix) << "input module is broken!\n";
|
||||
return 1;
|
||||
|
|
Loading…
Reference in New Issue