forked from OSchip/llvm-project
When assigning from an rvalue to a const reference, the implicit cast from T -> const T is not an lvalue cast.
llvm-svn: 72082
This commit is contained in:
parent
be81045db7
commit
97c793ad1c
|
@ -2269,7 +2269,7 @@ Sema::CheckReferenceInit(Expr *&Init, QualType DeclType,
|
||||||
} else {
|
} else {
|
||||||
// FIXME: Binding to a subobject of the rvalue is going to require more
|
// FIXME: Binding to a subobject of the rvalue is going to require more
|
||||||
// AST annotation than this.
|
// AST annotation than this.
|
||||||
ImpCastExprToType(Init, T1, /*isLvalue=*/true);
|
ImpCastExprToType(Init, T1, /*isLvalue=*/false);
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue