[LLVMbugs] [Bug 5155] New: Values should support placement new
bugzilla-daemon at cs.uiuc.edu
bugzilla-daemon at cs.uiuc.edu
Thu Oct 8 12:22:45 PDT 2009
http://llvm.org/bugs/show_bug.cgi?id=5155
Summary: Values should support placement new
Product: libraries
Version: trunk
Platform: PC
OS/Version: All
Status: NEW
Severity: enhancement
Priority: P2
Component: Core LLVM classes
AssignedTo: unassignedbugs at nondot.org
ReportedBy: jyasskin at google.com
CC: llvmbugs at cs.uiuc.edu
I'm trying to write a test that the ExecutionEngine handles a GlobalVariable
being destroyed and a new one being created at the same address. The normal way
to do this would be to allocate a char[sizeof(GlobalVariable)] and use
placement new to put the GlobalVariable there. This doesn't work for subclasses
of User since it hangs extra data off the start of the object.
It would be nice if placement new (or CreateAt(void*,...) as appropriate) were
defined so we could write this kind of test.
--
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