[llvm] r239311 - Change MCSymbol IsELF to an enum to support future MCSymbolCOFF and MCSymbolMachO.

Reid Kleckner rnk at google.com
Mon Jun 8 15:11:25 PDT 2015


On Mon, Jun 8, 2015 at 10:17 AM, Pete Cooper <peter_cooper at apple.com> wrote:
>
> -  unsigned IsELF : 1;
> +  SymbolKind Kind : 2;


enums with MSVC are always signed unless you ask for something else, so
this will cause sign extension and cast failure at runtime. I'm going to
make this unsigned.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150608/e6002a2b/attachment.html>


More information about the llvm-commits mailing list