From 0ef79aa7010061e4d0eb5f5376cefc47017ecfe8 Mon Sep 17 00:00:00 2001 From: Tilmann Scheller Date: Tue, 7 Oct 2014 10:19:34 +0000 Subject: [PATCH] [InstCombine] Reformat if statements to comply with LLVM Coding Standards. Patch by Sonam Kumari! Differential Revision: http://reviews.llvm.org/D5643 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@219198 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Transforms/InstCombine/InstCombineMulDivRem.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/lib/Transforms/InstCombine/InstCombineMulDivRem.cpp b/lib/Transforms/InstCombine/InstCombineMulDivRem.cpp index 0a19a4880f2..2f57a73ba65 100644 --- a/lib/Transforms/InstCombine/InstCombineMulDivRem.cpp +++ b/lib/Transforms/InstCombine/InstCombineMulDivRem.cpp @@ -175,8 +175,12 @@ Instruction *InstCombiner::visitMul(BinaryOperator &I) { if (NewCst) { BinaryOperator *Shl = BinaryOperator::CreateShl(NewOp, NewCst); - if (I.hasNoSignedWrap()) Shl->setHasNoSignedWrap(); - if (I.hasNoUnsignedWrap()) Shl->setHasNoUnsignedWrap(); + + if (I.hasNoSignedWrap()) + Shl->setHasNoSignedWrap(); + if (I.hasNoUnsignedWrap()) + Shl->setHasNoUnsignedWrap(); + return Shl; } }