summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Analysis/InstructionSimplify.cpp
diff options
context:
space:
mode:
authorDuncan Sands <baldrick@free.fr>2011-01-28 18:53:08 +0000
committerDuncan Sands <baldrick@free.fr>2011-01-28 18:53:08 +0000
commite4b4d0c16db70233d9dc4829b5e0419d8f5b984c (patch)
treebfdc2cf2277e83e6ea92f33c35e10a60b5adc9d6 /llvm/lib/Analysis/InstructionSimplify.cpp
parent65995fa2a0dfa5141ca2567ac8c93491d3699642 (diff)
downloadbcm5719-llvm-e4b4d0c16db70233d9dc4829b5e0419d8f5b984c.tar.gz
bcm5719-llvm-e4b4d0c16db70233d9dc4829b5e0419d8f5b984c.zip
This dyn_cast should be a cast. Pointed out by Frits van Bommel.
llvm-svn: 124497
Diffstat (limited to 'llvm/lib/Analysis/InstructionSimplify.cpp')
-rw-r--r--llvm/lib/Analysis/InstructionSimplify.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Analysis/InstructionSimplify.cpp b/llvm/lib/Analysis/InstructionSimplify.cpp
index 54dc6e6148e..16cdfeb838f 100644
--- a/llvm/lib/Analysis/InstructionSimplify.cpp
+++ b/llvm/lib/Analysis/InstructionSimplify.cpp
@@ -795,7 +795,7 @@ static Value *SimplifyDiv(unsigned Opcode, Value *Op0, Value *Op1,
Value *X = 0, *Y = 0;
if (match(Op0, m_Mul(m_Value(X), m_Value(Y))) && (X == Op1 || Y == Op1)) {
if (Y != Op1) std::swap(X, Y); // Ensure expression is (X * Y) / Y, Y = Op1
- BinaryOperator *Mul = dyn_cast<BinaryOperator>(Op0);
+ BinaryOperator *Mul = cast<BinaryOperator>(Op0);
// If the Mul knows it does not overflow, then we are good to go.
if ((isSigned && Mul->hasNoSignedWrap()) ||
(!isSigned && Mul->hasNoUnsignedWrap()))
OpenPOWER on IntegriCloud