[llvm] 1d192e0 - [IR] Fix formatting. NFC

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Fri Mar 13 14:00:37 PDT 2020


Author: Craig Topper
Date: 2020-03-13T14:00:20-07:00
New Revision: 1d192e09d808311b2be3eecb2583c75e7ff1d67f

URL: https://github.com/llvm/llvm-project/commit/1d192e09d808311b2be3eecb2583c75e7ff1d67f
DIFF: https://github.com/llvm/llvm-project/commit/1d192e09d808311b2be3eecb2583c75e7ff1d67f.diff

LOG: [IR] Fix formatting. NFC

Added: 
    

Modified: 
    llvm/lib/IR/Constants.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/IR/Constants.cpp b/llvm/lib/IR/Constants.cpp
index c609add1f122..c68b461f1719 100644
--- a/llvm/lib/IR/Constants.cpp
+++ b/llvm/lib/IR/Constants.cpp
@@ -2121,7 +2121,8 @@ Constant *ConstantExpr::getGetElementPtr(Type *Ty, Constant *C,
   ElementCount EltCount = {0, false};
   if (VectorType *VecTy = dyn_cast<VectorType>(C->getType()))
     EltCount = VecTy->getElementCount();
-  else for (auto Idx : Idxs)
+  else
+    for (auto Idx : Idxs)
       if (VectorType *VecTy = dyn_cast<VectorType>(Idx->getType()))
         EltCount = VecTy->getElementCount();
 


        


More information about the llvm-commits mailing list