diff options
author | David Blaikie <dblaikie@gmail.com> | 2015-03-03 19:53:04 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2015-03-03 19:53:04 +0000 |
commit | e4080e7f2ab886dbe3c03777e1573be66c8bb07a (patch) | |
tree | 0e1d85c4818bb3feb03f44b209e1b4d7fd9c2689 /llvm/lib/Target/PowerPC/PPCISelDAGToDAG.cpp | |
parent | ca199cbf9b84499c8073424b622deda5511df444 (diff) | |
download | bcm5719-llvm-e4080e7f2ab886dbe3c03777e1573be66c8bb07a.tar.gz bcm5719-llvm-e4080e7f2ab886dbe3c03777e1573be66c8bb07a.zip |
DeltaAlgorithm: Provide protected default copy ctor for use by test derived class.
Without this, use of this copy ctor is deprecated in C++11 due to the
presence of a user-declared dtor.
Marking the class final is just a little extra security that there are
no further derived classes that may then end up using the intermediate
base class's copy assignment operator and cause slicing to occur.
I didn't bother marking the other (non-test) base class final, since it
has reference members so it won't have any implicit assignment operators
anyway. Open to ideas on that, though.
We probably want a warning about use of a slicing assignment operator,
then I wouldn't worry so much about marking the class as final.
llvm-svn: 231114
Diffstat (limited to 'llvm/lib/Target/PowerPC/PPCISelDAGToDAG.cpp')
0 files changed, 0 insertions, 0 deletions