mirror of
https://github.com/RPCS3/llvm.git
synced 2026-07-21 03:05:26 -04:00
COFF: Fix another StringRef return error
This should appease the lld build bot regression Following up on rL303493 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@303494 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user