[LLVMbugs] [Bug 12066] New: Crash in getPrevNode() for iplist<Instruction>
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Wed Feb 22 07:09:50 PST 2012
http://llvm.org/bugs/show_bug.cgi?id=12066
Bug #: 12066
Summary: Crash in getPrevNode() for iplist<Instruction>
Product: libraries
Version: 3.0
Platform: PC
OS/Version: Windows NT
Status: NEW
Severity: normal
Priority: P
Component: Core LLVM classes
AssignedTo: unassignedbugs at nondot.org
ReportedBy: anton at d-inter.ru
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
Trying to call getPrevNode() for the first element in iplist<Instruction>
results in exception. Try following code:
iplist<llvm::Instruction> l;
Instruction *elem = llvm::ReturnInst::Create(getGlobalContext());
l.push_back(elem);
Instruction *prev = l.begin()->getPrevNode();
--
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