diff options
Diffstat (limited to 'clang/lib/AST/Decl.cpp')
-rw-r--r-- | clang/lib/AST/Decl.cpp | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/clang/lib/AST/Decl.cpp b/clang/lib/AST/Decl.cpp index e330e31d47f..657d2e01dc7 100644 --- a/clang/lib/AST/Decl.cpp +++ b/clang/lib/AST/Decl.cpp @@ -3473,20 +3473,6 @@ unsigned FunctionDecl::getMemoryFunctionKind() const { return 0; } -void FunctionDecl::addDeferredDiag(PartialDiagnosticAt PD) { - getASTContext().getDeferredDiags()[this].push_back(std::move(PD)); -} - -std::vector<PartialDiagnosticAt> FunctionDecl::takeDeferredDiags() const { - auto &DD = getASTContext().getDeferredDiags(); - auto It = DD.find(this); - if (It == DD.end()) - return {}; - auto Ret = std::move(It->second); - DD.erase(It); - return Ret; -} - //===----------------------------------------------------------------------===// // FieldDecl Implementation //===----------------------------------------------------------------------===// |