diff options
author | Duncan Sands <baldrick@free.fr> | 2011-01-28 18:53:08 +0000 |
---|---|---|
committer | Duncan Sands <baldrick@free.fr> | 2011-01-28 18:53:08 +0000 |
commit | 79f4eea7a3375aef93bf0d9fb1785ffee801eb84 (patch) | |
tree | 6bf41cbdbcc532147b48fd2ef21e2a91b187b1d6 /lib/Analysis/InstructionSimplify.cpp | |
parent | a3e292c7e85efb33899f08238f57a85996a05a0b (diff) |
This dyn_cast should be a cast. Pointed out by Frits van Bommel.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@124497 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/InstructionSimplify.cpp')
-rw-r--r-- | lib/Analysis/InstructionSimplify.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Analysis/InstructionSimplify.cpp b/lib/Analysis/InstructionSimplify.cpp index 54dc6e6148..16cdfeb838 100644 --- a/lib/Analysis/InstructionSimplify.cpp +++ b/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())) |