[llvm-commits] CVS: llvm/lib/Transforms/ExprTypeConvert.cpp
Chris Lattner
lattner at cs.uiuc.edu
Wed Oct 15 11:49:12 PDT 2003
Changes in directory llvm/lib/Transforms:
ExprTypeConvert.cpp updated: 1.78 -> 1.79
---
Log message:
Decrease usage of use_size()
---
Diffs of the changes: (+1 -1)
Index: llvm/lib/Transforms/ExprTypeConvert.cpp
diff -u llvm/lib/Transforms/ExprTypeConvert.cpp:1.78 llvm/lib/Transforms/ExprTypeConvert.cpp:1.79
--- llvm/lib/Transforms/ExprTypeConvert.cpp:1.78 Fri Oct 10 12:51:40 2003
+++ llvm/lib/Transforms/ExprTypeConvert.cpp Wed Oct 15 11:48:29 2003
@@ -1271,7 +1271,7 @@
}
ValueHandle::~ValueHandle() {
- if (Operands[0]->use_size() == 1) {
+ if (Operands[0]->hasOneUse()) {
Value *V = Operands[0];
Operands[0] = 0; // Drop use!
More information about the llvm-commits
mailing list