Wdeprecated: Ensure CheckNames are copy assignable (used in setCurrentCheckName) by removing the unnecessary copy ctor

llvm-svn: 244986
This commit is contained in:
David Blaikie
2015-08-13 23:38:46 +00:00
parent 9cc0420211
commit 8b0e915144

View File

@@ -89,8 +89,7 @@ class CheckName {
explicit CheckName(StringRef Name) : Name(Name) {}
public:
CheckName() {}
CheckName(const CheckName &Other) : Name(Other.Name) {}
CheckName() = default;
StringRef getName() const { return Name; }
};