aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenModule.h
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2015-08-13 23:53:09 +0000
committerDavid Blaikie <dblaikie@gmail.com>2015-08-13 23:53:09 +0000
commit92551616656d77fb0cb54e2fb576f6aa0551588e (patch)
tree45b7bac5d231e0b846cc713285dcd934728dc8ee /clang/lib/CodeGen/CodeGenModule.h
parent2dcef9e0a41331f9645bd659ffa37b8da76cab28 (diff)
downloadllvm-92551616656d77fb0cb54e2fb576f6aa0551588e.zip
llvm-92551616656d77fb0cb54e2fb576f6aa0551588e.tar.gz
llvm-92551616656d77fb0cb54e2fb576f6aa0551588e.tar.bz2
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. llvm-svn: 244990
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.h')
-rw-r--r--clang/lib/CodeGen/CodeGenModule.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.h b/clang/lib/CodeGen/CodeGenModule.h
index 848188d..d873545 100644
--- a/clang/lib/CodeGen/CodeGenModule.h
+++ b/clang/lib/CodeGen/CodeGenModule.h
@@ -766,6 +766,7 @@ public:
CharUnits Alignment;
ByrefHelpers(CharUnits alignment) : Alignment(alignment) {}
+ ByrefHelpers(const ByrefHelpers &) = default;
virtual ~ByrefHelpers();
void Profile(llvm::FoldingSetNodeID &id) const {