summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--clang/include/clang/Frontend/CodeGenAction.h1
-rw-r--r--clang/lib/Frontend/CodeGenAction.cpp2
2 files changed, 3 insertions, 0 deletions
diff --git a/clang/include/clang/Frontend/CodeGenAction.h b/clang/include/clang/Frontend/CodeGenAction.h
index 07e02e5c6e7..642e02a2f70 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 ff24854339b..eb2990405d5 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())
OpenPOWER on IntegriCloud