Moved method call within a conditional branch because its effects will

be ignored on the false branch.

llvm-svn: 46228
This commit is contained in:
Ted Kremenek 2008-01-21 22:51:35 +00:00
parent aea769ee6d
commit 5465d11a23
1 changed files with 1 additions and 1 deletions

View File

@ -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();