From: NAKAMURA Takumi Date: Fri, 8 Jan 2016 12:50:03 +0000 (+0000) Subject: InstCombineCompares.cpp: Fix a warning. [-Wbraced-scalar-init] X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=b999767c2e737eeea421dd7290c8bbfc27a16cdc;p=oota-llvm.git InstCombineCompares.cpp: Fix a warning. [-Wbraced-scalar-init] git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@257167 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Transforms/InstCombine/InstCombineCompares.cpp b/lib/Transforms/InstCombine/InstCombineCompares.cpp index 1e977e13530..7e2912dac99 100644 --- a/lib/Transforms/InstCombine/InstCombineCompares.cpp +++ b/lib/Transforms/InstCombine/InstCombineCompares.cpp @@ -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()) {