[llvm] r303494 - COFF: Fix another StringRef return error
Martell Malone via llvm-commits
llvm-commits at lists.llvm.org
Sat May 20 14:54:15 PDT 2017
Author: martell
Date: Sat May 20 16:54:15 2017
New Revision: 303494
URL: http://llvm.org/viewvc/llvm-project?rev=303494&view=rev
Log:
COFF: Fix another StringRef return error
This should appease the lld build bot regression
Following up on rL303493
Modified:
llvm/trunk/lib/Object/COFFModuleDefinition.cpp
Modified: llvm/trunk/lib/Object/COFFModuleDefinition.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Object/COFFModuleDefinition.cpp?rev=303494&r1=303493&r2=303494&view=diff
==============================================================================
--- llvm/trunk/lib/Object/COFFModuleDefinition.cpp (original)
+++ llvm/trunk/lib/Object/COFFModuleDefinition.cpp Sat May 20 16:54:15 2017
@@ -60,7 +60,7 @@ static bool isDecorated(StringRef Sym) {
}
static Error createError(const Twine &Err) {
- return make_error<StringError>(Err.getSingleStringRef(),
+ return make_error<StringError>(StringRef(Err.str()),
object_error::parse_failed);
}
More information about the llvm-commits
mailing list