[modules] Do not serialize / deserialize pending new/delete mismatch
authorRichard Smith <richard-llvm@metafoo.co.uk>
Thu, 28 Jun 2018 01:57:04 +0000 (01:57 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Thu, 28 Jun 2018 01:57:04 +0000 (01:57 +0000)
commitf5262c638565ca86ca7f3e7e47a2960c2e82aa53
tree732003c760c967dd836c6537346263d6a7e1bc93
parentec5d568ac128bde27488bc44969f1fbc8c8a0c7a
[modules] Do not serialize / deserialize pending new/delete mismatch
checks across module boundaries. This was causing us to load constructor
definitions for all consumers of a module with a pending check.

(In one case we saw ~7% of total frontend time spent loading
constructors for this check.)

llvm-svn: 335807
clang/lib/Sema/Sema.cpp
clang/lib/Serialization/ASTWriter.cpp
clang/test/Modules/new-delete.cpp [new file with mode: 0644]