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:
Mehdi Amini 2016-12-23 23:53:57 +00:00
parent 0bda5b5ff4
commit 4c80946850

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