OSDN Git Service
(root)
/
android-x86
/
external-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e679288
)
Fix typo
author
Chris Lattner
<sabre@nondot.org>
Thu, 27 Oct 2005 06:26:26 +0000
(06:26 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Thu, 27 Oct 2005 06:26:26 +0000
(06:26 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24033
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Transforms/Scalar/InstructionCombining.cpp
patch
|
blob
|
history
diff --git
a/lib/Transforms/Scalar/InstructionCombining.cpp
b/lib/Transforms/Scalar/InstructionCombining.cpp
index
1a9b9d7
..
7db409d
100644
(file)
--- 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();