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:
Martell Malone 2017-05-20 21:54:15 +00:00
parent d1a5d9eee5
commit 36af8f4d42
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}