diff --git a/clang/lib/AST/RecordLayoutBuilder.cpp b/clang/lib/AST/RecordLayoutBuilder.cpp index d01c4a0523fe..88d71ce04287 100644 --- a/clang/lib/AST/RecordLayoutBuilder.cpp +++ b/clang/lib/AST/RecordLayoutBuilder.cpp @@ -660,9 +660,8 @@ class RecordLayoutBuilder { void UpdateAlignment(unsigned NewAlignment); - // DO NOT IMPLEMENT - RecordLayoutBuilder(const RecordLayoutBuilder&) ATTRIBUTE_UNUSED; - void operator=(const RecordLayoutBuilder&) ATTRIBUTE_UNUSED; + RecordLayoutBuilder(const RecordLayoutBuilder&); // DO NOT IMPLEMENT + void operator=(const RecordLayoutBuilder&); // DO NOT IMPLEMENT public: static const CXXMethodDecl *ComputeKeyFunction(const CXXRecordDecl *RD); }; diff --git a/clang/lib/Frontend/VerifyDiagnosticsClient.cpp b/clang/lib/Frontend/VerifyDiagnosticsClient.cpp index f2a260631711..ae36481444da 100644 --- a/clang/lib/Frontend/VerifyDiagnosticsClient.cpp +++ b/clang/lib/Frontend/VerifyDiagnosticsClient.cpp @@ -18,7 +18,6 @@ #include "llvm/ADT/SmallString.h" #include "llvm/Support/Regex.h" #include "llvm/Support/raw_ostream.h" -#include "llvm/Support/Compiler.h" using namespace clang; VerifyDiagnosticsClient::VerifyDiagnosticsClient(Diagnostic &_Diags, @@ -101,8 +100,8 @@ protected: : Location(Location), Text(Text), Count(Count) { } private: - Directive(const Directive&) ATTRIBUTE_UNUSED; // DO NOT IMPLEMENT - void operator=(const Directive&) ATTRIBUTE_UNUSED; // DO NOT IMPLEMENT + Directive(const Directive&); // DO NOT IMPLEMENT + void operator=(const Directive&); // DO NOT IMPLEMENT }; /// StandardDirective - Directive with string matching.