]> granicus.if.org Git - clang/commit
[Codegen] Don't crash if destructor is not accessible.
authorDavide Italiano <davide@freebsd.org>
Sun, 21 Jun 2015 16:33:50 +0000 (16:33 +0000)
committerDavide Italiano <davide@freebsd.org>
Sun, 21 Jun 2015 16:33:50 +0000 (16:33 +0000)
commitbcdd41a1b919ea30131e03ecc9647b0cda9efb13
treeaabe76f481951895336e88de0caf7fe27b4d5bcb
parent14ff9b05ed99ad684a605c527f3dfbad363251c9
[Codegen] Don't crash if destructor is not accessible.

Testcase provided, in the PR, by Christian Shelton and
reduced by David Majnemer.

PR: 23584
Differential Revision: http://reviews.llvm.org/D10508
Reviewed by: rnk

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