From 3de2ddc57897b914e286b39fc875133ed9f4e010 Mon Sep 17 00:00:00 2001 From: Eli Friedman Date: Sat, 21 May 2011 19:13:10 +0000 Subject: PR7952: Make isa<> use the same logic as cast<>, so that they both work consistently. llvm-svn: 131803 --- llvm/lib/Transforms/Scalar/SCCP.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib/Transforms/Scalar') diff --git a/llvm/lib/Transforms/Scalar/SCCP.cpp b/llvm/lib/Transforms/Scalar/SCCP.cpp index db8eb850448..083412ed942 100644 --- a/llvm/lib/Transforms/Scalar/SCCP.cpp +++ b/llvm/lib/Transforms/Scalar/SCCP.cpp @@ -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(&TI)) + if (isa(TI)) return true; #ifndef NDEBUG -- cgit v1.2.3