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: [email protected]
ReportedBy: [email protected]
CC: [email protected]
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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs