projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Sets insertion point of fake cond branch to the last phi node in the block
[oota-llvm.git]
/
lib
/
IR
/
Verifier.cpp
diff --git
a/lib/IR/Verifier.cpp
b/lib/IR/Verifier.cpp
index
c8f99c5
..
37b56f8
100644
(file)
--- a/
lib/IR/Verifier.cpp
+++ b/
lib/IR/Verifier.cpp
@@
-1974,6
+1974,10
@@
void Verifier::visitBasicBlock(BasicBlock &BB) {
"PHI nodes must have at least one entry. If the block is dead, "
"the PHI should be removed!",
PN);
"PHI nodes must have at least one entry. If the block is dead, "
"the PHI should be removed!",
PN);
+ if (PN->getNumIncomingValues() != Preds.size()) {
+ dbgs() << "Problematic function: \n" << *PN->getParent()->getParent() << "\n";
+ dbgs() << "Problematic block: \n" << *PN->getParent() << "\n";
+ }
Assert(PN->getNumIncomingValues() == Preds.size(),
"PHINode should have one entry for each predecessor of its "
"parent basic block!",
Assert(PN->getNumIncomingValues() == Preds.size(),
"PHINode should have one entry for each predecessor of its "
"parent basic block!",