diff options
author | Mehdi Amini <mehdi.amini@apple.com> | 2016-12-23 23:53:57 +0000 |
---|---|---|
committer | Mehdi Amini <mehdi.amini@apple.com> | 2016-12-23 23:53:57 +0000 |
commit | 4c80946850c1e41ce71b532d1004caff15c584be (patch) | |
tree | 94d66c9d2785ea3b13da450a3bf9f77cfdd22fee /llvm/tools/llvm-lto/llvm-lto.cpp | |
parent | 0bda5b5ff4b80aa71cda371ad12d6321431b6d11 (diff) | |
download | bcm5719-llvm-4c80946850c1e41ce71b532d1004caff15c584be.tar.gz bcm5719-llvm-4c80946850c1e41ce71b532d1004caff15c584be.zip |
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
Diffstat (limited to 'llvm/tools/llvm-lto/llvm-lto.cpp')
-rw-r--r-- | llvm/tools/llvm-lto/llvm-lto.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/tools/llvm-lto/llvm-lto.cpp b/llvm/tools/llvm-lto/llvm-lto.cpp index ece0130c9fb..475350c8ecf 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<T> &V, const Twine &Prefix) { } static void maybeVerifyModule(const Module &Mod) { - if (!DisableVerify && verifyModule(Mod)) + if (!DisableVerify && verifyModule(Mod, &errs())) error("Broken Module"); } |