[PATCH] D99696: [clang] NRVO: Improvements and handling of more cases.
Matheus Izvekov via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Apr 9 19:47:14 PDT 2021
mizvekov added inline comments.
================
Comment at: clang/lib/Sema/SemaExprCXX.cpp:854
if (Ex && !Ex->isTypeDependent()) {
+ NRVOResult NRVORes = IsThrownVarInScope ? getNRVOResult(Ex) : NRVOResult();
+
----------------
mizvekov wrote:
> aaronpuchert wrote:
> > Any reason why you've moved that away from the comment that wants to explain it?
> Yes, on C++2b this might modify Ex, and I moved it so this would happen before we do the check with the type of the expression just below here.
But yeah I forgot to move the comment, good catch.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D99696/new/
https://reviews.llvm.org/D99696
More information about the cfe-commits
mailing list