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:
Mehdi Amini 2016-12-23 23:53:57 +00:00
parent fcb4147da2
commit cda4dc6c3d

View File

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