projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
906a91a
)
[IR] Fix formatting. NFC
author
Craig Topper
<craig.topper@intel.com>
Fri, 13 Mar 2020 19:19:36 +0000
(12:19 -0700)
committer
Craig Topper
<craig.topper@intel.com>
Fri, 13 Mar 2020 21:00:20 +0000
(14:00 -0700)
llvm/lib/IR/Constants.cpp
patch
|
blob
|
history
diff --git
a/llvm/lib/IR/Constants.cpp
b/llvm/lib/IR/Constants.cpp
index
c609add
..
c68b461
100644
(file)
--- 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();