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 | c6372cca787567d7565c97409d4e40006ce93a99 (patch) | |
| tree | 15ec7ff4e6dfd8d1a6cecadbfbcdfde8fd33ff7e /llvm/lib/Transforms | |
| parent | 0fe7551bc0d54032cb145818ac396bb8ba2dc7c0 (diff) | |
| download | bcm5719-llvm-c6372cca787567d7565c97409d4e40006ce93a99.tar.gz bcm5719-llvm-c6372cca787567d7565c97409d4e40006ce93a99.zip | |
Fix typo
llvm-svn: 24033
Diffstat (limited to 'llvm/lib/Transforms')
| -rw-r--r-- | llvm/lib/Transforms/Scalar/InstructionCombining.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Scalar/InstructionCombining.cpp b/llvm/lib/Transforms/Scalar/InstructionCombining.cpp index 1a9b9d7424a..7db409d39e2 100644 --- a/llvm/lib/Transforms/Scalar/InstructionCombining.cpp +++ b/llvm/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(); |

