http://llvm.org/bugs/show_bug.cgi?id=11828

             Bug #: 11828
           Summary: new warning in llvm-c/Core.h
           Product: new-bugs
           Version: trunk
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected]
    Classification: Unclassified


Introduced in r148553, new enum value for LLVMAtrribute:

    LLVMAddressSafety = 1ULL << 32

On Visual Studio 2008, 32-bit build, this generates a warning:

warning C4341: 'LLVMAddressSafety' : signed value is out of range for enum
constant    C:\work\llvm_trunk\include\llvm-c\Core.h    123


Indeed, 1 << 32 is out of range of an enum in a 32-bit build. Enums are not
guaranteed to be able to hold anything larger than an int.

This warning may be indicative of a real problem in client code of llvm-c which
attempts to use this enum

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to