InstCombineCompares.cpp: Fix a warning. [-Wbraced-scalar-init]
authorNAKAMURA Takumi <geek4civic@gmail.com>
Fri, 8 Jan 2016 12:50:03 +0000 (12:50 +0000)
committerNAKAMURA Takumi <geek4civic@gmail.com>
Fri, 8 Jan 2016 12:50:03 +0000 (12:50 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@257167 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/InstCombine/InstCombineCompares.cpp

index 1e977e1..7e2912d 100644 (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()) {