From cf848879ff280e7114f78e058019c1e8b527b3c9 Mon Sep 17 00:00:00 2001 From: Zhanyong Wan Date: Sat, 20 Nov 2010 07:52:48 +0000 Subject: [PATCH] Fix a typo in EnvironmentManager::bindExprAndLocation(). Reviewed by kremenek. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@119899 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Checker/Environment.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/Checker/Environment.cpp b/lib/Checker/Environment.cpp index 02291f4350..10644ccc14 100644 --- a/lib/Checker/Environment.cpp +++ b/lib/Checker/Environment.cpp @@ -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 { -- 2.40.0