summaryrefslogtreecommitdiff
path: root/test/SemaTemplate/template-class-traits.cpp
diff options
context:
space:
mode:
authorRafael Auler <rafaelauler@fb.com>2019-03-20 19:22:24 +0000
committerRafael Auler <rafaelauler@fb.com>2019-03-20 19:22:24 +0000
commit09aea98d000e0081c512a1ef9e3690f2a6762157 (patch)
tree952d9cfeed096fa3d4a412dc724652f52e6f7112 /test/SemaTemplate/template-class-traits.cpp
parent1e1ffe52e64547dc5f23ac1d017f284d33142a52 (diff)
downloadclang-09aea98d000e0081c512a1ef9e3690f2a6762157.tar.gz
Recommit "Support attribute used in member funcs of class templates"
This diff previously exposed a bug in LLVM's IRLinker, breaking buildbots that tried to self-host LLVM with monolithic LTO. The bug is now in LLVM by D59552 Original commit message: As PR17480 describes, clang does not support the used attribute for member functions of class templates. This means that if the member function is not used, its definition is never instantiated. This patch changes clang to emit the definition if it has the used attribute. Test Plan: Added a testcase Reviewed By: aaron.ballman Differential Revision: https://reviews.llvm.org/D56928 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@356598 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/SemaTemplate/template-class-traits.cpp')
0 files changed, 0 insertions, 0 deletions