diff options
| author | Ted Kremenek <kremenek@apple.com> | 2008-01-21 22:51:35 +0000 |
|---|---|---|
| committer | Ted Kremenek <kremenek@apple.com> | 2008-01-21 22:51:35 +0000 |
| commit | 8893b0d3ac7b6eb6957e645c59f63651891cef97 (patch) | |
| tree | bb3bc17301ffbaa73aad1392740d31144c27d1e0 | |
| parent | c4125a3c44171f90639621c3c93182a7fe45b24e (diff) | |
Moved method call within a conditional branch because its effects will
be ignored on the false branch.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@46228 91177308-0d34-0410-b5e6-96231b3b80d8
| -rw-r--r-- | include/llvm/ADT/ImmutableSet.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/ADT/ImmutableSet.h b/include/llvm/ADT/ImmutableSet.h index 856667d121..1172460364 100644 --- a/include/llvm/ADT/ImmutableSet.h +++ b/include/llvm/ADT/ImmutableSet.h @@ -219,9 +219,9 @@ private: // of the last item hash and the the next item. unsigned X = ID.ComputeHash(); - ID.clear(); if (R) { + ID.clear(); ID.AddInteger(X); ID.AddInteger(R->ComputeHash()); X = ID.ComputeHash(); |
