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

Reply via email to