forked from OSchip/llvm-project
COFF: Fix another StringRef return error
This should appease the lld build bot regression Following up on rL303493 llvm-svn: 303494
This commit is contained in:
parent
d1a5d9eee5
commit
36af8f4d42
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue