[LLVMbugs] [Bug 9542] New: inconsistent example in Programmer's Manual
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Thu Mar 24 05:09:54 PDT 2011
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: unassignedbugs at nondot.org
ReportedBy: eliben at gmail.com
CC: llvmbugs at cs.uiuc.edu
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.
More information about the llvm-bugs
mailing list