[LLVMbugs] [Bug 6589] New: ReturnInst::op_iterator behave bad when #operands=0

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Mar 12 04:01:33 PST 2010


           Summary: ReturnInst::op_iterator behave bad when #operands=0
           Product: new-bugs
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: martin at lumai.se
                CC: llvmbugs at cs.uiuc.edu

The ReturnInst at the end of a void function reports 0 from getNumOperands(),
but gives iterators where op_begin() != op_end().

The iterators does behave correctly when getNumOperands() == 1.

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