commit | 303595942502f17c087fa28874c2b89117148c45 | [log] [tgz] |
---|---|---|
author | Dan Gohman <gohman@apple.com> | Tue Jan 29 13:02:09 2008 +0000 |
committer | Dan Gohman <gohman@apple.com> | Tue Jan 29 13:02:09 2008 +0000 |
tree | 75e904f611c8a27f2ed75866eb2cabe4e9468141 | |
parent | 9f65c39f806186e1bbe1c9e4b670d198c69a81c1 [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/Transforms/Scalar/Reassociate.cpp b/lib/Transforms/Scalar/Reassociate.cpp index 9bc1018..b0fd3d6 100644 --- a/lib/Transforms/Scalar/Reassociate.cpp +++ b/lib/Transforms/Scalar/Reassociate.cpp
@@ -722,7 +722,7 @@ ++NumFactor; - if (Ops.size() == 0) + if (Ops.empty()) return V2; // Add the new value to the list of things being added.