From 4c80946850c1e41ce71b532d1004caff15c584be Mon Sep 17 00:00:00 2001 From: Mehdi Amini Date: Fri, 23 Dec 2016 23:53:57 +0000 Subject: [PATCH] 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 --- llvm/tools/llvm-lto/llvm-lto.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/tools/llvm-lto/llvm-lto.cpp b/llvm/tools/llvm-lto/llvm-lto.cpp index ece0130c9fb6..475350c8ecf1 100644 --- a/llvm/tools/llvm-lto/llvm-lto.cpp +++ b/llvm/tools/llvm-lto/llvm-lto.cpp @@ -247,7 +247,7 @@ static void error(const ErrorOr &V, const Twine &Prefix) { } static void maybeVerifyModule(const Module &Mod) { - if (!DisableVerify && verifyModule(Mod)) + if (!DisableVerify && verifyModule(Mod, &errs())) error("Broken Module"); }