[LLVMbugs] [Bug 8613] New: Copy constructor of SwitchInst does not call SwitchInst::init
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Mon Nov 15 09:19:50 PST 2010
http://llvm.org/bugs/show_bug.cgi?id=8613
Summary: Copy constructor of SwitchInst does not call
SwitchInst::init
Product: new-bugs
Version: trunk
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: kevin.streit at googlemail.com
CC: llvmbugs at cs.uiuc.edu
After calling the copy constructor of SwitchInst the newly created SwitchInst
is not fully initialized. In particular the ReservedSpace field is not
initialized which leads to undefined behavior when adding a case to the cloned
switch later.
The same holds for calling SwitchInst::clone_impl() since it just uses the copy
constructor.
--
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