PR7952: Make isa<> use the same logic as cast<>, so that they both work

consistently.



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@131803 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Eli Friedman
2011-05-21 19:13:10 +00:00
parent b22da2a72c
commit 21c60904ce
2 changed files with 45 additions and 53 deletions

View File

@@ -655,7 +655,7 @@ bool SCCPSolver::isEdgeFeasible(BasicBlock *From, BasicBlock *To) {
// Just mark all destinations executable!
// TODO: This could be improved if the operand is a [cast of a] BlockAddress.
if (isa<IndirectBrInst>(&TI))
if (isa<IndirectBrInst>(TI))
return true;
#ifndef NDEBUG