]> granicus.if.org Git - clang/commit
[AST] Only store the needed data in WhileStmt
authorBruno Ricci <riccibrun@gmail.com>
Tue, 30 Oct 2018 13:42:41 +0000 (13:42 +0000)
committerBruno Ricci <riccibrun@gmail.com>
Tue, 30 Oct 2018 13:42:41 +0000 (13:42 +0000)
commit6660d64d8d63db7066a12dc0de615f642b8814e3
treeee978645c6def8835494f20fd798be9fd747c057
parentdbebe6ee9c0b6e15541bf03b3bf08dd1fd107a88
[AST] Only store the needed data in WhileStmt

Don't store the data for the condition variable if not needed.
This cuts the size of WhileStmt by up to a pointer.
The order of the children is kept the same.

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

Reviewed By: rjmccall

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@345597 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/AST/Stmt.h
lib/AST/ASTDumper.cpp
lib/AST/ASTImporter.cpp
lib/AST/Stmt.cpp
lib/Sema/SemaStmt.cpp
lib/Serialization/ASTReaderStmt.cpp
lib/Serialization/ASTWriterStmt.cpp
test/Import/while-stmt/test.cpp