[llvm] r176661 - Keep coding stanard.

Jakub Staszak kubastaszak at gmail.com
Thu Mar 7 14:20:07 PST 2013


Author: kuba
Date: Thu Mar  7 16:20:06 2013
New Revision: 176661

URL: http://llvm.org/viewvc/llvm-project?rev=176661&view=rev
Log:
Keep coding stanard.

Modified:
    llvm/trunk/lib/Transforms/Scalar/SROA.cpp

Modified: llvm/trunk/lib/Transforms/Scalar/SROA.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Scalar/SROA.cpp?rev=176661&r1=176660&r2=176661&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Scalar/SROA.cpp (original)
+++ llvm/trunk/lib/Transforms/Scalar/SROA.cpp Thu Mar  7 16:20:06 2013
@@ -1097,13 +1097,12 @@ Type *AllocaPartitioning::getCommonType(
       continue;
 
     Type *UserTy = 0;
-    if (LoadInst *LI = dyn_cast<LoadInst>(UI->U->getUser())) {
+    if (LoadInst *LI = dyn_cast<LoadInst>(UI->U->getUser()))
       UserTy = LI->getType();
-    } else if (StoreInst *SI = dyn_cast<StoreInst>(UI->U->getUser())) {
+    else if (StoreInst *SI = dyn_cast<StoreInst>(UI->U->getUser()))
       UserTy = SI->getValueOperand()->getType();
-    } else {
+    else
       return 0; // Bail if we have weird uses.
-    }
 
     if (IntegerType *ITy = dyn_cast<IntegerType>(UserTy)) {
       // If the type is larger than the partition, skip it. We only encounter





More information about the llvm-commits mailing list