From 5465d11a23d9a0fbdc2f9b474c04f18f978ab81c Mon Sep 17 00:00:00 2001 From: Ted Kremenek Date: Mon, 21 Jan 2008 22:51:35 +0000 Subject: [PATCH] Moved method call within a conditional branch because its effects will be ignored on the false branch. llvm-svn: 46228 --- llvm/include/llvm/ADT/ImmutableSet.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/include/llvm/ADT/ImmutableSet.h b/llvm/include/llvm/ADT/ImmutableSet.h index 856667d12190..11724603647e 100644 --- a/llvm/include/llvm/ADT/ImmutableSet.h +++ b/llvm/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();