diff options
| author | Chris Lattner <sabre@nondot.org> | 2001-10-02 03:41:24 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2001-10-02 03:41:24 +0000 |
| commit | da5581066696da706444b83a5729ea08b9190cd1 (patch) | |
| tree | 2079bd1429d6b16c94df71bc918fe1f624aa3f2f /llvm/docs/CodingStandards.html | |
| parent | 38569343868ee3dad90dcdddfb9fee1ca0bcf25f (diff) | |
| download | bcm5719-llvm-da5581066696da706444b83a5729ea08b9190cd1.tar.gz bcm5719-llvm-da5581066696da706444b83a5729ea08b9190cd1.zip | |
Commit more code over to new cast style
llvm-svn: 697
Diffstat (limited to 'llvm/docs/CodingStandards.html')
| -rw-r--r-- | llvm/docs/CodingStandards.html | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/llvm/docs/CodingStandards.html b/llvm/docs/CodingStandards.html index 489e47694c7..62288cc9e86 100644 --- a/llvm/docs/CodingStandards.html +++ b/llvm/docs/CodingStandards.html @@ -262,7 +262,7 @@ To further assist with debugging, make sure to put some kind of error message in <pre> inline Value *getOperand(unsigned i) { - assert(i < Operands.size() && "getOperand() out of range!"); + assert(i < Operands.size() && "getOperand() out of range!"); return Operands[i]; } </pre> @@ -270,15 +270,15 @@ To further assist with debugging, make sure to put some kind of error message in Here are some examples: <pre> - assert(Ty->isPointerType() && "Can't allocate a non pointer type!"); + assert(Ty->isPointerType() && "Can't allocate a non pointer type!"); assert((Opcode == Shl || Opcode == Shr) && "ShiftInst Opcode invalid!"); - assert(idx < getNumSuccessors() && "Successor # out of range!"); + assert(idx < getNumSuccessors() && "Successor # out of range!"); assert(V1.getType() == V2.getType() && "Constant types must be identical!"); - assert(Succ->front()->isPHINode() && "Only works on PHId BBs!"); + assert(isa<PHINode>(Succ->front()) && "Only works on PHId BBs!"); </pre><p> You get the idea...<p> @@ -646,7 +646,7 @@ If you get some free time, and you haven't read them: do so, you might learn som <address><a href="mailto:sabre@nondot.org">Chris Lattner</a></address> <!-- Created: Tue Jan 23 15:19:28 CST 2001 --> <!-- hhmts start --> -Last modified: Mon Oct 1 08:17:21 CDT 2001 +Last modified: Mon Oct 1 15:33:40 CDT 2001 <!-- hhmts end --> </font> </body></html> |

