[LLVMbugs] [Bug 1218] NEW: Patch for strict alias warning in Support/Allocator.cpp
bugzilla-daemon at cs.uiuc.edu
bugzilla-daemon at cs.uiuc.edu
Fri Feb 23 12:22:35 PST 2007
http://llvm.org/bugs/show_bug.cgi?id=1218
Summary: Patch for strict alias warning in Support/Allocator.cpp
Product: libraries
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: minor
Priority: P2
Component: Support Libraries
AssignedTo: unassignedbugs at nondot.org
ReportedBy: me22.ca at gmail.com
I only saw 3 warnings compiling llvm, 2 of which looked like flex's
fault, so it made me want to fix the other one:
Allocator.cpp: In member function 'void*
llvm::BumpPtrAllocator::Allocate(unsigned int, unsigned int)':
Allocator.cpp:96: warning: dereferencing type-punned pointer will
break strict-aliasing rules
I'm not convinced it actually broke aliasing rules, but it's a fairly
trivial fix that simplifies the code, so it seems worth it. Only
possible drawback is that it (opaquely) exposes MemRegion, but that
identifier is used nowhere else in llvm at the moment.
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
More information about the llvm-bugs
mailing list