forked from OSchip/llvm-project
llvm-lto: pass errs() to the module verifier (NFC)
It is more friendly to have the actual diagnostic when the verifier fails. llvm-svn: 290462
This commit is contained in:
parent
0bda5b5ff4
commit
4c80946850
|
@ -247,7 +247,7 @@ static void error(const ErrorOr<T> &V, const Twine &Prefix) {
|
||||||
}
|
}
|
||||||
|
|
||||||
static void maybeVerifyModule(const Module &Mod) {
|
static void maybeVerifyModule(const Module &Mod) {
|
||||||
if (!DisableVerify && verifyModule(Mod))
|
if (!DisableVerify && verifyModule(Mod, &errs()))
|
||||||
error("Broken Module");
|
error("Broken Module");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue