]> granicus.if.org Git - clang/commit
Put the invalid flag of OwningResult into the Action pointer.
authorSebastian Redl <sebastian.redl@getdesigned.at>
Thu, 5 Feb 2009 15:02:23 +0000 (15:02 +0000)
committerSebastian Redl <sebastian.redl@getdesigned.at>
Thu, 5 Feb 2009 15:02:23 +0000 (15:02 +0000)
commit76ad2e85575722e8a38a2bd4648ab4304d9fcd24
tree4fd48aba612cba8567f0e3014a8b76236f76d1dc
parent0defd76d0b73c4866f1d5f71a274bf125fafd446
Put the invalid flag of OwningResult into the Action pointer.
This shrinks OwningResult by one pointer. Since it is no longer larger than OwningPtr, merge the two.
This leads to simpler client code and speeds up my benchmark by 2.7%.
For some reason, this exposes a previously hidden bug, causing a regression in SemaCXX/condition.cpp.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@63867 91177308-0d34-0410-b5e6-96231b3b80d8
Driver/PrintParserCallbacks.cpp
include/clang/Parse/Action.h
include/clang/Parse/Ownership.h
lib/Parse/ParseDecl.cpp
lib/Parse/ParseExpr.cpp
lib/Parse/ParseInit.cpp
lib/Parse/ParseObjc.cpp
lib/Parse/ParseStmt.cpp
lib/Parse/Parser.cpp