[llvm-commits] CVS: llvm/www/docs/ProgrammersManual.html
Chris Lattner
lattner at cs.uiuc.edu
Tue Sep 17 17:44:01 PDT 2002
Changes in directory llvm/www/docs:
ProgrammersManual.html updated: 1.25 -> 1.26
---
Log message:
Avoid using two i's in the same statements
---
Diffs of the changes:
Index: llvm/www/docs/ProgrammersManual.html
diff -u llvm/www/docs/ProgrammersManual.html:1.25 llvm/www/docs/ProgrammersManual.html:1.26
--- llvm/www/docs/ProgrammersManual.html:1.25 Mon Sep 16 17:08:07 2002
+++ llvm/www/docs/ProgrammersManual.html Tue Sep 17 17:43:00 2002
@@ -560,9 +560,9 @@
Function* F = ...;
for(Value::use_iterator i = F->use_begin(), e = F->use_end(); i != e; ++i) {
- if(Instruction* i = dyn_cast<Instruction>(*i)) {
- cerr << "F is used in instruction:\n\t";
- cerr << *i << "\n";
+ if(Instruction* Inst = dyn_cast<Instruction>(*i)) {
+ cerr << "F is used in instruction:\n";
+ cerr << *Inst << "\n";
}
}
</pre>
@@ -1575,6 +1575,6 @@
<a href="mailto:sabre at nondot.org">Chris Lattner</a></address>
<!-- Created: Tue Aug 6 15:00:33 CDT 2002 -->
<!-- hhmts start -->
-Last modified: Mon Sep 16 17:07:43 CDT 2002
+Last modified: Tue Sep 17 17:41:54 CDT 2002
<!-- hhmts end -->
</font></body></html>
More information about the llvm-commits
mailing list