Changes in directory llvm/lib/Transforms/Scalar:
InstructionCombining.cpp updated: 1.396 -> 1.397 --- Log message: Fix typo --- Diffs of the changes: (+1 -1) InstructionCombining.cpp | 2 +- 1 files changed, 1 insertion(+), 1 deletion(-) Index: llvm/lib/Transforms/Scalar/InstructionCombining.cpp diff -u llvm/lib/Transforms/Scalar/InstructionCombining.cpp:1.396 llvm/lib/Transforms/Scalar/InstructionCombining.cpp:1.397 --- llvm/lib/Transforms/Scalar/InstructionCombining.cpp:1.396 Thu Oct 27 01:24:46 2005 +++ llvm/lib/Transforms/Scalar/InstructionCombining.cpp Thu Oct 27 01:26:26 2005 @@ -3844,7 +3844,7 @@ } 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(); _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits