mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-01-15 20:51:35 +00:00
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:
parent
0bda5b5ff4
commit
4c80946850
@ -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");
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user