r234291 - DebugInfo: Update for LLVM change in r234290

Timur Iskhodzhanov timurrrr at google.com
Tue Apr 7 10:37:50 PDT 2015


Oh sorry, I thought you've already committed a fix.
You can try to commit and see if this bot's happy afterwards.

вт, 7 апр. 2015 г. в 20:37, Timur Iskhodzhanov <timurrrr at google.com>:

> http://lab.llvm.org:8011/builders/sanitizer-windows/builds/2329
> seems to be happy
>
> вт, 7 апр. 2015 г. в 20:24, Duncan P. N. Exon Smith <dexonsmith at apple.com
> >:
>
>
>> > On 2015-Apr-07, at 08:48, Duncan P. N. Exon Smith <dexonsmith at apple.com>
>> wrote:
>> >
>> >>
>> >> On 2015-Apr-07, at 04:32, Timur Iskhodzhanov <timurrrr at google.com>
>> wrote:
>> >>
>> >> MSVC isn't happy with that, I've landed a band-aid fix in r234307.
>> >> Please take a look!
>> >
>> > Thanks for this; looks like my bandaid on the LLVM side.  Sorry I missed
>> > the failure -- I went home once I saw that DwarfUnit.cpp was finally
>> > building and didn't check for the clang build.
>> >
>> > I'll find a way to clean all this up this morning.
>> >
>>
>> I think r234326 is the proper fix.  Can someone with access to MSVC apply
>> the attached reverts on top of and confirm that the build failures don't
>> reappear?
>>
>>
>>
>>
>> >>
>> >> вт, 7 апр. 2015 г. в 7:21, Duncan P. N. Exon Smith <
>> dexonsmith at apple.com>:
>> >>
>> >> Author: dexonsmith
>> >> Date: Mon Apr  6 23:14:45 2015
>> >> New Revision: 234291
>> >>
>> >> URL: http://llvm.org/viewvc/llvm-project?rev=234291&view=rev
>> >> Log:
>> >> DebugInfo: Update for LLVM change in r234290
>> >>
>> >> The API for `DIArray` changed; use the new one.
>> >>
>> >> Modified:
>> >>    cfe/trunk/lib/CodeGen/CGDebugInfo.cpp
>> >>
>> >> Modified: cfe/trunk/lib/CodeGen/CGDebugInfo.cpp
>> >> URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CG
>> DebugInfo.cpp?rev=234291&r1=234290&r2=234291&view=diff
>> >> ============================================================
>> ==================
>> >> --- cfe/trunk/lib/CodeGen/CGDebugInfo.cpp (original)
>> >> +++ cfe/trunk/lib/CodeGen/CGDebugInfo.cpp Mon Apr  6 23:14:45 2015
>> >> @@ -1039,12 +1039,12 @@ llvm::DICompositeType CGDebugInfo::getOr
>> >>   llvm::DITypeArray Args(
>> >>       cast<llvm::MDSubroutineType>(getOrCreateType(QualType(Func, 0),
>> Unit))
>> >>           ->getTypeArray());
>> >> -  assert(Args.getNumElements() && "Invalid number of arguments!");
>> >> +  assert(Args.size() && "Invalid number of arguments!");
>> >>
>> >>   SmallVector<llvm::Metadata *, 16> Elts;
>> >>
>> >>   // First element is always return type. For 'void' functions it is
>> NULL.
>> >> -  Elts.push_back(Args.getElement(0));
>> >> +  Elts.push_back(Args[0]);
>> >>
>> >>   // "this" pointer is always first argument.
>> >>   const CXXRecordDecl *RD = ThisPtr->getPointeeCXXRecordDecl();
>> >> @@ -1072,8 +1072,8 @@ llvm::DICompositeType CGDebugInfo::getOr
>> >>   }
>> >>
>> >>   // Copy rest of the arguments.
>> >> -  for (unsigned i = 1, e = Args.getNumElements(); i != e; ++i)
>> >> -    Elts.push_back(Args.getElement(i));
>> >> +  for (unsigned i = 1, e = Args.size(); i != e; ++i)
>> >> +    Elts.push_back(Args[i]);
>> >>
>> >>   llvm::DITypeArray EltTypeArray = DBuilder.getOrCreateTypeArray(
>> Elts);
>> >>
>> >>
>> >>
>> >> _______________________________________________
>> >> cfe-commits mailing list
>> >> cfe-commits at cs.uiuc.edu
>> >> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
>> >
>> >
>> > _______________________________________________
>> > cfe-commits mailing list
>> > cfe-commits at cs.uiuc.edu
>> > http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
>>
>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20150407/e0b672aa/attachment.html>


More information about the cfe-commits mailing list