]> granicus.if.org Git - clang/commitdiff
Fix a typo in EnvironmentManager::bindExprAndLocation(). Reviewed by kremenek.
authorZhanyong Wan <wan@google.com>
Sat, 20 Nov 2010 07:52:48 +0000 (07:52 +0000)
committerZhanyong Wan <wan@google.com>
Sat, 20 Nov 2010 07:52:48 +0000 (07:52 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@119899 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Checker/Environment.cpp

index 02291f43500c6eb30bf786f18bf02a1eef4f6e42..10644ccc144e38c75e5215a2c7408024ff4a3825 100644 (file)
@@ -101,7 +101,8 @@ static inline const Stmt *MakeLocation(const Stmt *S) {
 Environment EnvironmentManager::bindExprAndLocation(Environment Env,
                                                     const Stmt *S,
                                                     SVal location, SVal V) {
-  return Environment(F.Add(F.Add(Env.ExprBindings, MakeLocation(S), V), S, V));
+  return Environment(F.Add(F.Add(Env.ExprBindings, MakeLocation(S), location),
+                           S, V));
 }
 
 namespace {