diff --git a/clang/include/clang/Frontend/CodeGenAction.h b/clang/include/clang/Frontend/CodeGenAction.h index 07e02e5c6e78..642e02a2f706 100644 --- a/clang/include/clang/Frontend/CodeGenAction.h +++ b/clang/include/clang/Frontend/CodeGenAction.h @@ -23,6 +23,7 @@ private: protected: CodeGenAction(unsigned _Act); + ~CodeGenAction(); virtual ASTConsumer *CreateASTConsumer(CompilerInstance &CI, llvm::StringRef InFile); diff --git a/clang/lib/Frontend/CodeGenAction.cpp b/clang/lib/Frontend/CodeGenAction.cpp index ff24854339be..eb2990405d53 100644 --- a/clang/lib/Frontend/CodeGenAction.cpp +++ b/clang/lib/Frontend/CodeGenAction.cpp @@ -435,6 +435,8 @@ void BackendConsumer::EmitAssembly() { CodeGenAction::CodeGenAction(unsigned _Act) : Act(_Act) {} +CodeGenAction::~CodeGenAction() {} + void CodeGenAction::EndSourceFileAction() { // If the consumer creation failed, do nothing. if (!getCompilerInstance().hasASTConsumer())