diff options
author | Dan Gohman <gohman@apple.com> | 2010-02-22 02:07:36 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2010-02-22 02:07:36 +0000 |
commit | 2444080ca4f1f63d647272650aae874360c604cd (patch) | |
tree | f71de195689a89abfb29fb3f9dc01e8ac4ef3b43 /lib/Transforms/Scalar/IndVarSimplify.cpp | |
parent | 74fd536158f5230b5993d826d86e701f1f24314f (diff) | |
download | external_llvm-2444080ca4f1f63d647272650aae874360c604cd.tar.gz external_llvm-2444080ca4f1f63d647272650aae874360c604cd.tar.bz2 external_llvm-2444080ca4f1f63d647272650aae874360c604cd.zip |
This cast<Instruction> is unnecessary.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@96771 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Scalar/IndVarSimplify.cpp')
-rw-r--r-- | lib/Transforms/Scalar/IndVarSimplify.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Transforms/Scalar/IndVarSimplify.cpp b/lib/Transforms/Scalar/IndVarSimplify.cpp index 60492b0283..91447d12b1 100644 --- a/lib/Transforms/Scalar/IndVarSimplify.cpp +++ b/lib/Transforms/Scalar/IndVarSimplify.cpp @@ -190,7 +190,7 @@ ICmpInst *IndVarSimplify::LinearFunctionTestReplace(Loop *L, ICmpInst *Cond = new ICmpInst(BI, Opcode, CmpIndVar, ExitCnt, "exitcond"); - Instruction *OrigCond = cast<Instruction>(BI->getCondition()); + Value *OrigCond = BI->getCondition(); // It's tempting to use replaceAllUsesWith here to fully replace the old // comparison, but that's not immediately safe, since users of the old // comparison may not be dominated by the new comparison. Instead, just |