diff options
Diffstat (limited to 'clang/lib/Sema/SemaDeclCXX.cpp')
-rw-r--r-- | clang/lib/Sema/SemaDeclCXX.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/lib/Sema/SemaDeclCXX.cpp b/clang/lib/Sema/SemaDeclCXX.cpp index 2f43e5fa9ec..128df113858 100644 --- a/clang/lib/Sema/SemaDeclCXX.cpp +++ b/clang/lib/Sema/SemaDeclCXX.cpp @@ -1597,7 +1597,7 @@ Sema::CheckReferenceInit(Expr *&Init, QualType &DeclType, // Perform the conversion. // FIXME: Binding to a subobject of the lvalue is going to require // more AST annotation than this. - ImpCastExprToType(Init, T1); + ImpCastExprToType(Init, T1, /*isLvalue=*/true); } } @@ -1656,7 +1656,7 @@ Sema::CheckReferenceInit(Expr *&Init, QualType &DeclType, // Perform the conversion. // FIXME: Binding to a subobject of the lvalue is going to require // more AST annotation than this. - ImpCastExprToType(Init, T1); + ImpCastExprToType(Init, T1, /*isLvalue=*/true); } break; @@ -1741,7 +1741,7 @@ Sema::CheckReferenceInit(Expr *&Init, QualType &DeclType, } else { // FIXME: Binding to a subobject of the rvalue is going to require // more AST annotation than this. - ImpCastExprToType(Init, T1); + ImpCastExprToType(Init, T1, /*isLvalue=*/true); } return false; } |