Try harder to not inline dllimport functions referencing non-dllimport functions
authorHans Wennborg <hans@hanshq.net>
Tue, 13 Sep 2016 21:08:20 +0000 (21:08 +0000)
committerHans Wennborg <hans@hanshq.net>
Tue, 13 Sep 2016 21:08:20 +0000 (21:08 +0000)
commit93f7547260f1e490fd95b68f05f0b69d356ce8be
treecba5529b87ce1a1cc6f25123ce8627eb8d9871c7
parent1e2e8eae5d0c5fd4fc12477c1137d13502f7da5a
Try harder to not inline dllimport functions referencing non-dllimport functions

In r246338, code was added to check for this, but it failed to take into
account implicit destructor invocations because those are not reflected
in the AST. This adds a separate check for them.

llvm-svn: 281395
clang/lib/CodeGen/CodeGenModule.cpp
clang/test/CodeGenCXX/dllimport-members.cpp
clang/test/CodeGenCXX/dllimport.cpp