diff options
| author | Eli Friedman <eli.friedman@gmail.com> | 2011-05-21 19:13:10 +0000 |
|---|---|---|
| committer | Eli Friedman <eli.friedman@gmail.com> | 2011-05-21 19:13:10 +0000 |
| commit | 3de2ddc57897b914e286b39fc875133ed9f4e010 (patch) | |
| tree | 29eb07c30a0405c33b912117c1f99e4c2c14aa90 /llvm/lib/Transforms/Scalar | |
| parent | 781ba6e4071ec29e15ac7f631ab6ca0483d7cecd (diff) | |
| download | bcm5719-llvm-3de2ddc57897b914e286b39fc875133ed9f4e010.tar.gz bcm5719-llvm-3de2ddc57897b914e286b39fc875133ed9f4e010.zip | |
PR7952: Make isa<> use the same logic as cast<>, so that they both work
consistently.
llvm-svn: 131803
Diffstat (limited to 'llvm/lib/Transforms/Scalar')
| -rw-r--r-- | llvm/lib/Transforms/Scalar/SCCP.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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<IndirectBrInst>(&TI)) + if (isa<IndirectBrInst>(TI)) return true; #ifndef NDEBUG |

