]> granicus.if.org Git - clang/commit
InstrProf: Increment the profile counter for all types of destructor
authorJustin Bogner <mail@justinbogner.com>
Wed, 20 May 2015 16:16:23 +0000 (16:16 +0000)
committerJustin Bogner <mail@justinbogner.com>
Wed, 20 May 2015 16:16:23 +0000 (16:16 +0000)
commitf25f43b7157bdee56c5dd0562fc1dbc77489a3b6
tree83c30cf46ad58ff82e33ce57e94acd8a87c07ccf
parenta6a7170e6e2977ca5ce60f68f217a8ec31a1bd7d
InstrProf: Increment the profile counter for all types of destructor

-fprofile-instr-generate does not emit counter increment intrinsics
for Dtor_Deleting and Dtor_Complete destructors with assigned
counters. This causes unnecessary [-Wprofile-instr-out-of-date]
warnings during profile-use runs even if the source has never been
modified since profile collection.

Patch by Betul Buyukkurt. Thanks!

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@237804 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CGClass.cpp
test/Profile/cxx-virtual-destructor-calls.cpp [new file with mode: 0644]