diff options
author | Chris Lattner <sabre@nondot.org> | 2005-10-27 06:26:26 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2005-10-27 06:26:26 +0000 |
commit | 0e026de6ac21540b25dc37fed9f047f159cdca55 (patch) | |
tree | 179763723438b57b1ffaa11caf1427a3bffe23ea /lib/Transforms/Scalar/InstructionCombining.cpp | |
parent | e679288a30e150f4b1bbe6cc1ccd80fb650a0d7b (diff) |
Fix typo
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24033 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Scalar/InstructionCombining.cpp')
-rw-r--r-- | lib/Transforms/Scalar/InstructionCombining.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Transforms/Scalar/InstructionCombining.cpp b/lib/Transforms/Scalar/InstructionCombining.cpp index 1a9b9d7424..7db409d39e 100644 --- a/lib/Transforms/Scalar/InstructionCombining.cpp +++ b/lib/Transforms/Scalar/InstructionCombining.cpp @@ -3844,7 +3844,7 @@ Instruction *InstCombiner::PromoteCastOfAllocation(CastInst &CI, } else if (isa<Instruction>(NumElements) && cast<Instruction>(NumElements)->getOpcode() == Instruction::Mul){ BinaryOperator *BO = cast<BinaryOperator>(NumElements); - if (ConstantUInt *Scale = cast<ConstantUInt>(BO->getOperand(1))) { + if (ConstantUInt *Scale = dyn_cast<ConstantUInt>(BO->getOperand(1))) { // This value is scaled by 'Scale'. NumElements = BO->getOperand(0); ArraySizeScale = Scale->getValue(); |