forked from OSchip/llvm-project
Wdeprecated: PathPieces are copied, make them safely implicitly copyable by removing the unnecessary user declared dtor.
llvm-svn: 244973
This commit is contained in:
parent
83b0dc6392
commit
55477463d6
|
@ -422,7 +422,6 @@ class PathPieces : public std::list<IntrusiveRefCntPtr<PathDiagnosticPiece> > {
|
||||||
void flattenTo(PathPieces &Primary, PathPieces &Current,
|
void flattenTo(PathPieces &Primary, PathPieces &Current,
|
||||||
bool ShouldFlattenMacros) const;
|
bool ShouldFlattenMacros) const;
|
||||||
public:
|
public:
|
||||||
~PathPieces();
|
|
||||||
|
|
||||||
PathPieces flatten(bool ShouldFlattenMacros) const {
|
PathPieces flatten(bool ShouldFlattenMacros) const {
|
||||||
PathPieces Result;
|
PathPieces Result;
|
||||||
|
|
|
@ -62,8 +62,6 @@ PathDiagnosticControlFlowPiece::~PathDiagnosticControlFlowPiece() {}
|
||||||
PathDiagnosticMacroPiece::~PathDiagnosticMacroPiece() {}
|
PathDiagnosticMacroPiece::~PathDiagnosticMacroPiece() {}
|
||||||
|
|
||||||
|
|
||||||
PathPieces::~PathPieces() {}
|
|
||||||
|
|
||||||
void PathPieces::flattenTo(PathPieces &Primary, PathPieces &Current,
|
void PathPieces::flattenTo(PathPieces &Primary, PathPieces &Current,
|
||||||
bool ShouldFlattenMacros) const {
|
bool ShouldFlattenMacros) const {
|
||||||
for (PathPieces::const_iterator I = begin(), E = end(); I != E; ++I) {
|
for (PathPieces::const_iterator I = begin(), E = end(); I != E; ++I) {
|
||||||
|
|
Loading…
Reference in New Issue