mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-14 15:19:33 +00:00
[libObject][NFC] Include filename in error message
llvm-svn: 353341
This commit is contained in:
parent
8c8a782f87
commit
73f628e248
@ -511,7 +511,7 @@ Expected<MemoryBufferRef> Archive::Child::getMemoryBufferRef() const {
|
|||||||
StringRef Name = NameOrErr.get();
|
StringRef Name = NameOrErr.get();
|
||||||
Expected<StringRef> Buf = getBuffer();
|
Expected<StringRef> Buf = getBuffer();
|
||||||
if (!Buf)
|
if (!Buf)
|
||||||
return Buf.takeError();
|
return createFileError(Name, Buf.takeError());
|
||||||
return MemoryBufferRef(*Buf, Name);
|
return MemoryBufferRef(*Buf, Name);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user