unsigned NumArgs;
public:
- CXXTemporaryObjectExpr(VarDecl *vd,
+ CXXTemporaryObjectExpr(ASTContext &C, VarDecl *vd,
CXXConstructorDecl *Cons, QualType writtenTy,
SourceLocation tyBeginLoc, Expr **Args,
unsigned NumArgs, SourceLocation rParenLoc);
}
}
-CXXTemporaryObjectExpr::CXXTemporaryObjectExpr(VarDecl *vd,
+CXXTemporaryObjectExpr::CXXTemporaryObjectExpr(ASTContext &C, VarDecl *vd,
CXXConstructorDecl *Cons,
QualType writtenTy,
SourceLocation tyBeginLoc,
// 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));
}
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));
}