summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-07-23 15:16:40 +0000
committerChris Lattner <sabre@nondot.org>2003-07-23 15:16:40 +0000
commit23801c571e39def43e2390f20f5ad40b7f81ce5d (patch)
tree4cd7f37a446fdc169eb4f13e5aa6c5fe61223ef3 /llvm/lib
parentb976da9ecf3fe53330788f304d7609d00ba33b54 (diff)
downloadbcm5719-llvm-23801c571e39def43e2390f20f5ad40b7f81ce5d.tar.gz
bcm5719-llvm-23801c571e39def43e2390f20f5ad40b7f81ce5d.zip
Eliminate old-style cast
llvm-svn: 7248
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Analysis/Expressions.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Analysis/Expressions.cpp b/llvm/lib/Analysis/Expressions.cpp
index f1016a50dbe..7733b818191 100644
--- a/llvm/lib/Analysis/Expressions.cpp
+++ b/llvm/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
OpenPOWER on IntegriCloud