Keep coding stanard.
authorJakub Staszak <kubastaszak@gmail.com>
Thu, 7 Mar 2013 22:20:06 +0000 (22:20 +0000)
committerJakub Staszak <kubastaszak@gmail.com>
Thu, 7 Mar 2013 22:20:06 +0000 (22:20 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@176661 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Scalar/SROA.cpp

index dedbbde4f7b35975509d272e82304d2886f403bb..810a553c74be83ce8cbe4448efe36af5af08089f 100644 (file)
@@ -1097,13 +1097,12 @@ Type *AllocaPartitioning::getCommonType(iterator I) const {
       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