diff options
Diffstat (limited to 'include/clang/AST/ExprCXX.h')
-rw-r--r-- | include/clang/AST/ExprCXX.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/clang/AST/ExprCXX.h b/include/clang/AST/ExprCXX.h index aec2c6a8bf..5cc5ee11a4 100644 --- a/include/clang/AST/ExprCXX.h +++ b/include/clang/AST/ExprCXX.h @@ -3013,8 +3013,9 @@ class MaterializeTemporaryExpr : public Expr { friend class ASTStmtWriter; public: - MaterializeTemporaryExpr(Expr *Temporary, bool BoundToLvalueReference) - : Expr(MaterializeTemporaryExprClass, Temporary->getType(), + MaterializeTemporaryExpr(QualType T, Expr *Temporary, + bool BoundToLvalueReference) + : Expr(MaterializeTemporaryExprClass, T, BoundToLvalueReference? VK_LValue : VK_XValue, OK_Ordinary, Temporary->isTypeDependent(), Temporary->isValueDependent(), Temporary->containsUnexpandedParameterPack()), |