[llvm] r290462 - llvm-lto: pass errs() to the module verifier (NFC)

Mehdi Amini via llvm-commits llvm-commits at lists.llvm.org
Fri Dec 23 15:53:57 PST 2016


Author: mehdi_amini
Date: Fri Dec 23 17:53:57 2016
New Revision: 290462

URL: http://llvm.org/viewvc/llvm-project?rev=290462&view=rev
Log:
llvm-lto: pass errs() to the module verifier (NFC)

It is more friendly to have the actual diagnostic when the
verifier fails.

Modified:
    llvm/trunk/tools/llvm-lto/llvm-lto.cpp

Modified: llvm/trunk/tools/llvm-lto/llvm-lto.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-lto/llvm-lto.cpp?rev=290462&r1=290461&r2=290462&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-lto/llvm-lto.cpp (original)
+++ llvm/trunk/tools/llvm-lto/llvm-lto.cpp Fri Dec 23 17:53:57 2016
@@ -247,7 +247,7 @@ static void error(const ErrorOr<T> &V, c
 }
 
 static void maybeVerifyModule(const Module &Mod) {
-  if (!DisableVerify && verifyModule(Mod))
+  if (!DisableVerify && verifyModule(Mod, &errs()))
     error("Broken Module");
 }
 




More information about the llvm-commits mailing list