[LLVMbugs] [Bug 6303] New: MCAssembler uses values outside of enum range
bugzilla-daemon at cs.uiuc.edu
bugzilla-daemon at cs.uiuc.edu
Mon Feb 15 00:45:22 PST 2010
http://llvm.org/bugs/show_bug.cgi?id=6303
Summary: MCAssembler uses values outside of enum range
Product: new-bugs
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: baldrick at free.fr
CC: llvmbugs at cs.uiuc.edu
Reported by g++-4.5. Note that gcc passes like VRP know that enum values
are in range, and if they are not (like here) then you may get a miscompile.
lib/MC/MCAssembler.cpp: In function 'unsigned int
getFixupKindLog2Size(llvm::MCFixupKind)':
lib/MC/MCAssembler.cpp:57:3: warning: case value '129' not in enumerated type
'llvm::MCFixupKind'
lib/MC/MCAssembler.cpp:61:3: warning: case value '130' not in enumerated type
'llvm::MCFixupKind'
lib/MC/MCAssembler.cpp: In function 'bool isFixupKindPCRel(llvm::MCFixupKind)':
lib/MC/MCAssembler.cpp:71:3: warning: case value '129' not in enumerated type
'llvm::MCFixupKind'
lib/MC/MCAssembler.cpp:73:3: warning: case value '130' not in enumerated type
'llvm::MCFixupKind'
--
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