]> granicus.if.org Git - clang/commit
[OPENMP] Fix PR38823: Do not emit vtable if it is not used in target
authorAlexey Bataev <a.bataev@hotmail.com>
Thu, 6 Sep 2018 17:56:28 +0000 (17:56 +0000)
committerAlexey Bataev <a.bataev@hotmail.com>
Thu, 6 Sep 2018 17:56:28 +0000 (17:56 +0000)
commit20e2260b6c99e2bd176757f91f835d9990d10339
tree2901d4144b2483c97bedd5d5a49d8213d780c637
parent0eb34b90309c1153a9958e6e76bf187b5a39aea0
[OPENMP] Fix PR38823: Do not emit vtable if it is not used in target
context.

If the explicit template instantiation definition defined outside of the
target context, its vtable should not be marked as used. This is true
for other situations where the compiler want to emit vtables
unconditionally.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@341570 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaDeclCXX.cpp
test/OpenMP/declare_target_codegen.cpp