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