]> granicus.if.org Git - clang/commit
Wdeprecated: ByrefHelpers are copy constructed by the ::buildByrefHelpers helper...
authorDavid Blaikie <dblaikie@gmail.com>
Thu, 13 Aug 2015 23:53:09 +0000 (23:53 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Thu, 13 Aug 2015 23:53:09 +0000 (23:53 +0000)
commit7a209265566c2a802c20216fc9b0e50919d8a99c
tree5a0b1add657e4d96d62ea48cdfb3c4199a6d24b1
parent20f7922a2419502b9bcf4b89384d237da53a0ac5
Wdeprecated: ByrefHelpers are copy constructed by the ::buildByrefHelpers helper, make sure they're safely copyable

Make the copy/move ctors protected and defaulted in the base, make the
derived classes final to avoid exposing any slicing-prone APIs.

Also, while I'm here, simplify the use of buildByrefHelpers by taking
the parameter by value instead of non-const ref. None of the callers
care aobut observing the state after the call.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@244990 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CGBlocks.cpp
lib/CodeGen/CodeGenModule.h