forked from OSchip/llvm-project
InstCombineCompares.cpp: Fix a warning. [-Wbraced-scalar-init]
llvm-svn: 257167
This commit is contained in:
parent
0573159b84
commit
134d31e328
|
@ -821,7 +821,7 @@ static Value *rewriteGEPAsOffset(Value *Start, Value *Base,
|
|||
|
||||
Value *GEP =
|
||||
Builder.CreateInBoundsGEP(Start->getType()->getPointerElementType(),
|
||||
NewBase, {NewInsts[Val]},
|
||||
NewBase, makeArrayRef(NewInsts[Val]),
|
||||
Val->getName() + ".ptr");
|
||||
|
||||
if (!Val->getType()->isPointerTy()) {
|
||||
|
|
Loading…
Reference in New Issue