InstCombineCompares.cpp: Fix a warning. [-Wbraced-scalar-init]

llvm-svn: 257167
This commit is contained in:
NAKAMURA Takumi 2016-01-08 12:50:03 +00:00
parent 0573159b84
commit 134d31e328
1 changed files with 1 additions and 1 deletions

View File

@ -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()) {