commit | 301f405ef34539e7f287513bd7df0cbcf4f71d07 | [log] [tgz] |
---|---|---|
author | Dan Gohman <djg@cray.com> | Tue Jan 29 13:02:09 2008 +0000 |
committer | Dan Gohman <djg@cray.com> | Tue Jan 29 13:02:09 2008 +0000 |
tree | 75e904f611c8a27f2ed75866eb2cabe4e9468141 | |
parent | e490176fcdd23a72fffaafe08c96c00dab7610a3 [diff] [blame] |
Use empty() instead of comparing size() with zero. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@46514 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/lib/CodeGen/SelectionDAG/SelectionDAG.cpp index ad6cd1b..a61bd81 100644 --- a/lib/CodeGen/SelectionDAG/SelectionDAG.cpp +++ b/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
@@ -3497,7 +3497,7 @@ bool SDNode::hasAnyUseOfValue(unsigned Value) const { assert(Value < getNumValues() && "Bad value!"); - if (use_size() == 0) return false; + if (use_empty()) return false; SDOperand TheValue(const_cast<SDNode *>(this), Value);