For PR1042:
Fix a thinko. We want to check the second case if the first cast *didn't* trigger. llvm-svn: 32657
This commit is contained in:
parent
3ab9256d19
commit
77cc7edf3e
|
@ -921,7 +921,7 @@ void Verifier::visitInstruction(Instruction &I) {
|
||||||
// If it is used by something non-phi, then the other case is that
|
// If it is used by something non-phi, then the other case is that
|
||||||
// 'OpBlock' dominates all of its predecessors other than the
|
// 'OpBlock' dominates all of its predecessors other than the
|
||||||
// invoke. In this case, the invoke value can still be used.
|
// invoke. In this case, the invoke value can still be used.
|
||||||
if (Bad) {
|
if (!Bad) {
|
||||||
Bad = false;
|
Bad = false;
|
||||||
for (pred_iterator PI = pred_begin(OpBlock),
|
for (pred_iterator PI = pred_begin(OpBlock),
|
||||||
E = pred_end(OpBlock); PI != E; ++PI) {
|
E = pred_end(OpBlock); PI != E; ++PI) {
|
||||||
|
|
Loading…
Reference in New Issue