xbolva00 added inline comments.
================
Comment at: lib/Sema/Scope.cpp:128
- if (getEntity())
- return;
-
- if (NRVO.getInt())
- getParent()->setNoNRVO();
- else if (NRVO.getPointer())
- getParent()->addNRVOCandidate(NRVO.getPointer());
+ if (getParent())
+ getParent()->setNRVOCandidate(Candidate);
----------------
auto * Parent = getParent();
if (Parent)
Parent>setNRVOCandidate(Candidate);
?
Repository:
rC Clang
https://reviews.llvm.org/D47067
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits