projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e81021a
)
Don't store Twine in a local variable.
author
Eli Friedman
<efriedma@codeaurora.org>
Tue, 8 Nov 2016 19:43:56 +0000
(19:43 +0000)
committer
Eli Friedman
<efriedma@codeaurora.org>
Tue, 8 Nov 2016 19:43:56 +0000
(19:43 +0000)
Fixes post-commit review comment from r286177.
llvm-svn: 286275
llvm/lib/LTO/LTOCodeGenerator.cpp
patch
|
blob
|
history
diff --git
a/llvm/lib/LTO/LTOCodeGenerator.cpp
b/llvm/lib/LTO/LTOCodeGenerator.cpp
index
ab4f968
..
5c8f9d3
100644
(file)
--- a/
llvm/lib/LTO/LTOCodeGenerator.cpp
+++ b/
llvm/lib/LTO/LTOCodeGenerator.cpp
@@
-257,8
+257,7
@@
bool LTOCodeGenerator::compileOptimizedToFile(const char **Name) {
bool genResult = compileOptimized(&objFile.os());
objFile.os().close();
if (objFile.os().has_error()) {
- Twine ErrMsg = "could not write object file: " + Filename.str();
- emitError(ErrMsg.str());
+ emitError((Twine("could not write object file: ") + Filename).str());
objFile.os().clear_error();
sys::fs::remove(Twine(Filename));
return false;