PR7952: Make isa<> use the same logic as cast<>, so that they both work
[oota-llvm.git] / lib / Transforms / Scalar / SCCP.cpp
index db8eb850448f3668aa69dc9aad682068cccab86b..083412ed942dfd352cf098fe2e5613027725b700 100644 (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