diff options
Diffstat (limited to 'lib/Transforms/Scalar/Reassociate.cpp')
-rw-r--r-- | lib/Transforms/Scalar/Reassociate.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Transforms/Scalar/Reassociate.cpp b/lib/Transforms/Scalar/Reassociate.cpp index df0a64188f..3414c410ac 100644 --- a/lib/Transforms/Scalar/Reassociate.cpp +++ b/lib/Transforms/Scalar/Reassociate.cpp @@ -224,7 +224,7 @@ bool Reassociate::ReassociateBB(BasicBlock *BB) { // the two operands are sorted incorrectly, fix it now. // if (BI->isAssociative()) { - BinaryOperator *I = cast<BinaryOperator>(&*BI); + BinaryOperator *I = cast<BinaryOperator>(BI); if (!I->use_empty()) { // Make sure that we don't have a tree-shaped computation. If we do, // linearize it. Convert (A+B)+(C+D) into ((A+B)+C)+D |