[cfe-commits] r106497 - /cfe/trunk/lib/Sema/SemaExpr.cpp
Douglas Gregor
dgregor at apple.com
Mon Jun 21 15:46:46 PDT 2010
Author: dgregor
Date: Mon Jun 21 17:46:46 2010
New Revision: 106497
URL: http://llvm.org/viewvc/llvm-project?rev=106497&view=rev
Log:
Zero out a stale pointer
Modified:
cfe/trunk/lib/Sema/SemaExpr.cpp
Modified: cfe/trunk/lib/Sema/SemaExpr.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaExpr.cpp?rev=106497&r1=106496&r2=106497&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaExpr.cpp (original)
+++ cfe/trunk/lib/Sema/SemaExpr.cpp Mon Jun 21 17:46:46 2010
@@ -2903,6 +2903,7 @@
OwningExprResult NewBase
= ActOnCallExpr(0, ExprArg(*this, BaseExpr), Loc,
MultiExprArg(*this, 0, 0), 0, Loc);
+ BaseExpr = 0;
if (NewBase.isInvalid())
return ExprError();
More information about the cfe-commits
mailing list