]> granicus.if.org Git - clang/commit
Disable the optimization that skips emission of complete, non-virtual
authorDouglas Gregor <dgregor@apple.com>
Tue, 26 Jul 2011 23:18:30 +0000 (23:18 +0000)
committerDouglas Gregor <dgregor@apple.com>
Tue, 26 Jul 2011 23:18:30 +0000 (23:18 +0000)
commit3e23d68e2e642db107b78aac2bb27585ed0ef337
tree01f2962d4b4fe8336f71c8080f03e988c688e05b
parentb056db932942200b407a24f1c6fe8428f8ff9490
Disable the optimization that skips emission of complete, non-virtual
destructors of abstract classes. It's undefined behavior to actually
call the destructor (e.g., via delete), but the presence of code that
calls this destructor doesn't make the program
ill-formed. Fixes <rdar://problem/9819242>.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@136180 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CGCXX.cpp
test/CodeGenCXX/abstract-class-ctors-dtors.cpp