diff options
Diffstat (limited to 'llvm/lib/Transforms/Scalar/InductionVars.cpp')
-rw-r--r-- | llvm/lib/Transforms/Scalar/InductionVars.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Scalar/InductionVars.cpp b/llvm/lib/Transforms/Scalar/InductionVars.cpp index 69521d6c8b3..6815ccb9a40 100644 --- a/llvm/lib/Transforms/Scalar/InductionVars.cpp +++ b/llvm/lib/Transforms/Scalar/InductionVars.cpp @@ -76,7 +76,7 @@ static LIVType isLinearInductionVariableH(cfg::Interval *Int, Value *V, if (isLoopInvariant(Int, V)) return isLIC; // loop variant computations must be instructions! - Instruction *I = V->castInstructionAsserting(); + Instruction *I = cast<Instruction>(V); switch (I->getOpcode()) { // Handle each instruction seperately case Instruction::Add: case Instruction::Sub: { |