[cfe-commits] r88679 - in /cfe/trunk/lib/Sema: SemaDecl.cpp SemaDeclCXX.cpp
Anders Carlsson
andersca at mac.com
Fri Nov 13 11:27:03 PST 2009
On Nov 13, 2009, at 11:26 AM, Douglas Gregor wrote:
>> ==============================================================================
>> --- cfe/trunk/lib/Sema/SemaDeclCXX.cpp (original)
>> +++ cfe/trunk/lib/Sema/SemaDeclCXX.cpp Fri Nov 13 13:21:49 2009
>> @@ -1028,6 +1028,10 @@
>> Sema::BuildMemberInitializer(FieldDecl *Member, Expr **Args,
>> unsigned NumArgs, SourceLocation IdLoc,
>> SourceLocation RParenLoc) {
>> + // FIXME: CXXBaseOrMemberInitializer should only contain a single
>> + // subexpression so we can wrap it in a CXXExprWithTemporaries if necessary.
>> + ExprTemporaries.clear();
>> +
>
> Soo.... this works because CodeGen also has a hack, where it just "knows" to destroy temporaries after each CXXBaseOrMemberInitializer?
>
That is correct.
Anders
More information about the cfe-commits
mailing list