mirror of
https://github.com/RPCS3/llvm.git
synced 2025-03-01 15:19:05 +00:00
llvm-lto: pass errs() to the module verifier (NFC)
It is more friendly to have the actual diagnostic when the verifier fails. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@290462 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
fcb4147da2
commit
cda4dc6c3d
@ -247,7 +247,7 @@ static void error(const ErrorOr<T> &V, const Twine &Prefix) {
|
||||
}
|
||||
|
||||
static void maybeVerifyModule(const Module &Mod) {
|
||||
if (!DisableVerify && verifyModule(Mod))
|
||||
if (!DisableVerify && verifyModule(Mod, &errs()))
|
||||
error("Broken Module");
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user