http://llvm.org/bugs/show_bug.cgi?id=9542

           Summary: inconsistent example in Programmer's Manual
           Product: Documentation
           Version: trunk
          Platform: PC
        OS/Version: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: General docs
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected]


The section named "Deleting Instructions" in the LLVM programmer's manual is
inconsistent. It mentions:

"Second, you need to obtain the pointer to that instruction's basic block. You
use the pointer to the basic block to get its list of instructions and then"

But the code sample:

      Instruction *I = .. ;
      I->eraseFromParent();

Only uses the instruction pointer, not the basic block pointer and not its list
of instructions.

-- 
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