mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 03:33:20 +01:00
make domtree verification print something useful on failure.
llvm-svn: 123078
This commit is contained in:
parent
a01093c990
commit
e07601d493
@ -68,7 +68,14 @@ void DominatorTree::verifyAnalysis() const {
|
||||
|
||||
DominatorTree OtherDT;
|
||||
OtherDT.getBase().recalculate(F);
|
||||
assert(!compare(OtherDT) && "Invalid DominatorTree info!");
|
||||
if (compare(OtherDT)) {
|
||||
errs() << "DominatorTree is not up to date! Computed:\n";
|
||||
print(errs());
|
||||
|
||||
errs() << "\nActual:\n";
|
||||
OtherDT.print(errs());
|
||||
abort();
|
||||
}
|
||||
}
|
||||
|
||||
void DominatorTree::print(raw_ostream &OS, const Module *) const {
|
||||
|
Loading…
Reference in New Issue
Block a user