[lld] r230730 - Twine should be used within a statement.
Rui Ueyama
ruiu at google.com
Thu Feb 26 20:23:24 PST 2015
Author: ruiu
Date: Thu Feb 26 22:23:23 2015
New Revision: 230730
URL: http://llvm.org/viewvc/llvm-project?rev=230730&view=rev
Log:
Twine should be used within a statement.
Modified:
lld/trunk/lib/ReaderWriter/PECOFF/ReaderCOFF.cpp
Modified: lld/trunk/lib/ReaderWriter/PECOFF/ReaderCOFF.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/lib/ReaderWriter/PECOFF/ReaderCOFF.cpp?rev=230730&r1=230729&r2=230730&view=diff
==============================================================================
--- lld/trunk/lib/ReaderWriter/PECOFF/ReaderCOFF.cpp (original)
+++ lld/trunk/lib/ReaderWriter/PECOFF/ReaderCOFF.cpp Thu Feb 26 22:23:23 2015
@@ -913,9 +913,9 @@ FileCOFF::parseDirectiveSection(StringRe
stream.flush();
// Print error message if error.
if (parseFailed) {
- auto msg = Twine("Failed to parse '") + directives + "'\n"
- + "Reason: " + errorMessage;
- return make_dynamic_error_code(msg);
+ return make_dynamic_error_code(
+ Twine("Failed to parse '") + directives + "'\n"
+ + "Reason: " + errorMessage);
}
if (!errorMessage.empty()) {
llvm::errs() << "lld warning: " << errorMessage << "\n";
More information about the llvm-commits
mailing list