[InstCombine] Reformat if statements to comply with LLVM Coding Standards.

Patch by Sonam Kumari!

Differential Revision: http://reviews.llvm.org/D5643

llvm-svn: 219198
This commit is contained in:
Tilmann Scheller 2014-10-07 10:19:34 +00:00
parent 941bbec6f4
commit 2bc5cb687b
1 changed files with 6 additions and 2 deletions

View File

@ -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;
}
}