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

Silviu Baranga via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 8 04:57:55 PST 2016


Thanks! Sorry for the noise.

-Silviu

>> -----Original Message-----
>> From: llvm-commits [mailto:llvm-commits-bounces at lists.llvm.org] On
>> Behalf Of NAKAMURA Takumi via llvm-commits
>> Sent: 08 January 2016 12:50
>> To: llvm-commits at lists.llvm.org
>> Subject: [llvm] r257167 - InstCombineCompares.cpp: Fix a warning. [-
>> Wbraced-scalar-init]
>>
>> Author: chapuni
>> Date: Fri Jan  8 06:50:03 2016
>> New Revision: 257167
>>
>> URL: http://llvm.org/viewvc/llvm-project?rev=257167&view=rev
>> Log:
>> InstCombineCompares.cpp: Fix a warning. [-Wbraced-scalar-init]
>>
>> Modified:
>>     llvm/trunk/lib/Transforms/InstCombine/InstCombineCompares.cpp
>>
>> Modified:
>> llvm/trunk/lib/Transforms/InstCombine/InstCombineCompares.cpp
>> URL: http://llvm.org/viewvc/llvm-
>> project/llvm/trunk/lib/Transforms/InstCombine/InstCombineCompares.cp
>> p?rev=257167&r1=257166&r2=257167&view=diff
>> ==========================================================
>> ====================
>> --- llvm/trunk/lib/Transforms/InstCombine/InstCombineCompares.cpp
>> (original)
>> +++ llvm/trunk/lib/Transforms/InstCombine/InstCombineCompares.cpp Fri
>> Jan  8 06:50:03 2016
>> @@ -821,7 +821,7 @@ static Value *rewriteGEPAsOffset(Value *
>>
>>      Value *GEP =
>>          Builder.CreateInBoundsGEP(Start->getType()-
>> >getPointerElementType(),
>> -                                  NewBase, {NewInsts[Val]},
>> +                                  NewBase, makeArrayRef(NewInsts[Val]),
>>                                    Val->getName() + ".ptr");
>>
>>      if (!Val->getType()->isPointerTy()) {
>>
>>
>> _______________________________________________
>> llvm-commits mailing list
>> llvm-commits at lists.llvm.org
>> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits
IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you.


More information about the llvm-commits mailing list