r184695 - DebugInfo: ensure negative enumerators are emitted as such

Jordan Rose jordan_rose at apple.com
Mon Jun 24 09:26:52 PDT 2013


On Jun 24, 2013, at 9:25 , David Blaikie <dblaikie at gmail.com> wrote:

> 
> On Jun 24, 2013 9:17 AM, "Jordan Rose" <jordan_rose at apple.com> wrote:
> >
> > Couldn't this create problems for very big positive enums, i.e. those larger than 2^63?
> 
> Yep, that's the 'still a problem' I mentioned.
> 
> > Not that this isn't strictly better than what we had before.
> 
> Actually its not strictly better - I traded off one valid range for another. It just happens to be the one we now get right is the same as GCC, which is nice. GCC and clang both get the case you mentioned wrong in different ways so far as I can tell
> 
Well, abstractly no. In practice I would guess people use negative enums more often than really big positive enums. ;-)

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20130624/f76c2634/attachment.html>


More information about the cfe-commits mailing list