[PATCH] D51386: Add some context to fatal verifier errors
Xin Tong via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 11 11:09:56 PDT 2018
This revision was automatically updated to reflect the committed changes.
Closed by commit rL341974: Add some context to fatal verifier errors (authored by trentxintong, committed by ).
Changed prior to commit:
https://reviews.llvm.org/D51386?vs=162965&id=164936#toc
Repository:
rL LLVM
https://reviews.llvm.org/D51386
Files:
llvm/trunk/lib/IR/Verifier.cpp
Index: llvm/trunk/lib/IR/Verifier.cpp
===================================================================
--- llvm/trunk/lib/IR/Verifier.cpp
+++ llvm/trunk/lib/IR/Verifier.cpp
@@ -4730,9 +4730,10 @@
}
bool runOnFunction(Function &F) override {
- if (!V->verify(F) && FatalErrors)
+ if (!V->verify(F) && FatalErrors) {
+ errs() << "in function " << F.getName() << '\n';
report_fatal_error("Broken function found, compilation aborted!");
-
+ }
return false;
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D51386.164936.patch
Type: text/x-patch
Size: 498 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180911/b0e8fbaa/attachment.bin>
More information about the llvm-commits
mailing list