]> granicus.if.org Git - clang/commit
[AST] Only store data for the NRVO candidate in ReturnStmt if needed
authorBruno Ricci <riccibrun@gmail.com>
Tue, 30 Oct 2018 14:40:49 +0000 (14:40 +0000)
committerBruno Ricci <riccibrun@gmail.com>
Tue, 30 Oct 2018 14:40:49 +0000 (14:40 +0000)
commitda5611addabdc63bc38861f9a00f3443fb6238c7
tree021e404d0eb727b4c39c533cb7170d7fcde21451
parent6660d64d8d63db7066a12dc0de615f642b8814e3
[AST] Only store data for the NRVO candidate in ReturnStmt if needed

Only store the NRVO candidate if needed in ReturnStmt.
A good chuck of all of the ReturnStmt have no NRVO candidate
(more than half when parsing all of Boost). For all of them
this saves one pointer. This has no impact on children().

Differential Revision: https://reviews.llvm.org/D53716

Reviewed By: rsmith

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@345605 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/AST/Stmt.h
lib/AST/ASTImporter.cpp
lib/AST/Stmt.cpp
lib/Analysis/BodyFarm.cpp
lib/CodeGen/CGObjC.cpp
lib/Sema/SemaStmt.cpp
lib/Serialization/ASTReaderStmt.cpp
lib/Serialization/ASTWriterStmt.cpp