projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9daa8a1
)
Eliminate old-style cast
author
Chris Lattner
<sabre@nondot.org>
Wed, 23 Jul 2003 15:16:40 +0000
(15:16 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Wed, 23 Jul 2003 15:16:40 +0000
(15:16 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7248
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Analysis/Expressions.cpp
patch
|
blob
|
history
diff --git
a/lib/Analysis/Expressions.cpp
b/lib/Analysis/Expressions.cpp
index f1016a50dbe70f6d3a3bee00adf38dd1fe721e19..7733b818191d973a489a5c0ad8f96e49c16649c7 100644
(file)
--- a/
lib/Analysis/Expressions.cpp
+++ b/
lib/Analysis/Expressions.cpp
@@
-276,7
+276,7
@@
ExprType ClassifyExpression(Value *Expr) {
if (Right.Offset == 0) return Left; // shl x, 0 = x
assert(Right.Offset->getType() == Type::UByteTy &&
"Shift amount must always be a unsigned byte!");
- uint64_t ShiftAmount =
((ConstantUInt*)
Right.Offset)->getValue();
+ uint64_t ShiftAmount =
cast<ConstantUInt>(
Right.Offset)->getValue();
ConstantInt *Multiplier = getUnsignedConstant(1ULL << ShiftAmount, Ty);
// We don't know how to classify it if they are shifting by more than what