[cfe-commits] r69959 - in /cfe/trunk: include/clang/AST/ExprCXX.h lib/AST/ExprCXX.cpp lib/Sema/SemaExprCXX.cpp
Anders Carlsson
andersca at mac.com
Thu Apr 23 22:44:25 PDT 2009
Author: andersca
Date: Fri Apr 24 00:44:25 2009
New Revision: 69959
URL: http://llvm.org/viewvc/llvm-project?rev=69959&view=rev
Log:
Add an ASTContext parameter to CXXTemporaryObjectExpr.
Modified:
cfe/trunk/include/clang/AST/ExprCXX.h
cfe/trunk/lib/AST/ExprCXX.cpp
cfe/trunk/lib/Sema/SemaExprCXX.cpp
Modified: cfe/trunk/include/clang/AST/ExprCXX.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/AST/ExprCXX.h?rev=69959&r1=69958&r2=69959&view=diff
==============================================================================
--- cfe/trunk/include/clang/AST/ExprCXX.h (original)
+++ cfe/trunk/include/clang/AST/ExprCXX.h Fri Apr 24 00:44:25 2009
@@ -480,7 +480,7 @@
unsigned NumArgs;
public:
- CXXTemporaryObjectExpr(VarDecl *vd,
+ CXXTemporaryObjectExpr(ASTContext &C, VarDecl *vd,
CXXConstructorDecl *Cons, QualType writtenTy,
SourceLocation tyBeginLoc, Expr **Args,
unsigned NumArgs, SourceLocation rParenLoc);
Modified: cfe/trunk/lib/AST/ExprCXX.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/AST/ExprCXX.cpp?rev=69959&r1=69958&r2=69959&view=diff
==============================================================================
--- cfe/trunk/lib/AST/ExprCXX.cpp (original)
+++ cfe/trunk/lib/AST/ExprCXX.cpp Fri Apr 24 00:44:25 2009
@@ -231,7 +231,7 @@
}
}
-CXXTemporaryObjectExpr::CXXTemporaryObjectExpr(VarDecl *vd,
+CXXTemporaryObjectExpr::CXXTemporaryObjectExpr(ASTContext &C, VarDecl *vd,
CXXConstructorDecl *Cons,
QualType writtenTy,
SourceLocation tyBeginLoc,
Modified: cfe/trunk/lib/Sema/SemaExprCXX.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaExprCXX.cpp?rev=69959&r1=69958&r2=69959&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaExprCXX.cpp (original)
+++ cfe/trunk/lib/Sema/SemaExprCXX.cpp Fri Apr 24 00:44:25 2009
@@ -131,7 +131,8 @@
// FIXME: Is this correct?
CXXTempVarDecl *Temp = CXXTempVarDecl::Create(Context, CurContext, Ty);
- return Owned(new (Context) CXXTemporaryObjectExpr(Temp, 0, Ty, TyBeginLoc,
+ return Owned(new (Context) CXXTemporaryObjectExpr(Context, Temp, 0, Ty,
+ TyBeginLoc,
Exprs, NumExprs,
RParenLoc));
}
@@ -169,7 +170,8 @@
CXXTempVarDecl *Temp = CXXTempVarDecl::Create(Context, CurContext, Ty);
exprs.release();
- return Owned(new (Context) CXXTemporaryObjectExpr(Temp, Constructor, Ty,
+ return Owned(new (Context) CXXTemporaryObjectExpr(Context, Temp,
+ Constructor, Ty,
TyBeginLoc, Exprs,
NumExprs, RParenLoc));
}
More information about the cfe-commits
mailing list