summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2010-06-21 22:46:46 +0000
committerDouglas Gregor <dgregor@apple.com>2010-06-21 22:46:46 +0000
commitf918b8328add31b17075def5f56e53a3c572b084 (patch)
tree4b7a521104ce34e4d60c6fd440927b6b8ad57a63
parent07976d25eda0fed2734518be022ee84fab898cc6 (diff)
downloadclang-f918b8328add31b17075def5f56e53a3c572b084.tar.gz
Zero out a stale pointer
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@106497 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Sema/SemaExpr.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Sema/SemaExpr.cpp b/lib/Sema/SemaExpr.cpp
index 5882381e22..5e7a733e0f 100644
--- a/lib/Sema/SemaExpr.cpp
+++ b/lib/Sema/SemaExpr.cpp
@@ -2903,6 +2903,7 @@ Sema::LookupMemberExpr(LookupResult &R, Expr *&BaseExpr,
OwningExprResult NewBase
= ActOnCallExpr(0, ExprArg(*this, BaseExpr), Loc,
MultiExprArg(*this, 0, 0), 0, Loc);
+ BaseExpr = 0;
if (NewBase.isInvalid())
return ExprError();