From 1d192e09d808311b2be3eecb2583c75e7ff1d67f Mon Sep 17 00:00:00 2001 From: Craig Topper Date: Fri, 13 Mar 2020 12:19:36 -0700 Subject: [PATCH] [IR] Fix formatting. NFC --- llvm/lib/IR/Constants.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/llvm/lib/IR/Constants.cpp b/llvm/lib/IR/Constants.cpp index c609add..c68b461 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(C->getType())) EltCount = VecTy->getElementCount(); - else for (auto Idx : Idxs) + else + for (auto Idx : Idxs) if (VectorType *VecTy = dyn_cast(Idx->getType())) EltCount = VecTy->getElementCount(); -- 2.7.4