[LLVMbugs] [Bug 11828] New: new warning in llvm-c/Core.h
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Sun Jan 22 04:44:39 PST 2012
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: unassignedbugs at nondot.org
ReportedBy: eliben at gmail.com
CC: llvmbugs at cs.uiuc.edu
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.
More information about the llvm-bugs
mailing list