[cfe-commits] r103250 - /cfe/trunk/lib/Sema/SemaExpr.cpp
Sebastian Redl
sebastian.redl at getdesigned.at
Fri May 7 02:25:11 PDT 2010
Author: cornedbee
Date: Fri May 7 04:25:11 2010
New Revision: 103250
URL: http://llvm.org/viewvc/llvm-project?rev=103250&view=rev
Log:
A correct fix for bug 6466.
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=103250&r1=103249&r2=103250&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaExpr.cpp (original)
+++ cfe/trunk/lib/Sema/SemaExpr.cpp Fri May 7 04:25:11 2010
@@ -2668,6 +2668,9 @@
if (Result.get())
return move(Result);
+
+ // LookupMemberExpr can modify Base, and thus change BaseType
+ BaseType = Base->getType();
}
return BuildMemberReferenceExpr(ExprArg(*this, Base), BaseType,
More information about the cfe-commits
mailing list