summaryrefslogtreecommitdiff
path: root/lib/Transforms/Scalar/SCCP.cpp
diff options
context:
space:
mode:
authorEli Friedman <eli.friedman@gmail.com>2011-05-21 19:13:10 +0000
committerEli Friedman <eli.friedman@gmail.com>2011-05-21 19:13:10 +0000
commit21c60904ce6b937cb0c8744375e9c1a95fe0e495 (patch)
treea86e8bbe1201edf9216470d4eb690bc8c895ba81 /lib/Transforms/Scalar/SCCP.cpp
parentb22da2a72c51066a73134e0e5ff48877bd8d88c6 (diff)
downloadllvm-21c60904ce6b937cb0c8744375e9c1a95fe0e495.tar.gz
llvm-21c60904ce6b937cb0c8744375e9c1a95fe0e495.tar.bz2
llvm-21c60904ce6b937cb0c8744375e9c1a95fe0e495.tar.xz
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
Diffstat (limited to 'lib/Transforms/Scalar/SCCP.cpp')
-rw-r--r--lib/Transforms/Scalar/SCCP.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Transforms/Scalar/SCCP.cpp b/lib/Transforms/Scalar/SCCP.cpp
index db8eb85044..083412ed94 100644
--- a/lib/Transforms/Scalar/SCCP.cpp
+++ b/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<IndirectBrInst>(&TI))
+ if (isa<IndirectBrInst>(TI))
return true;
#ifndef NDEBUG