Skip to content

Commit

Permalink
InstCombineCompares.cpp: Fix a warning. [-Wbraced-scalar-init]
Browse files Browse the repository at this point in the history
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@257167 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
chapuni committed Jan 8, 2016
1 parent 2bb04c9 commit b999767
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Transforms/InstCombine/InstCombineCompares.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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()) {
Expand Down

0 comments on commit b999767

Please sign in to comment.