aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/clang/Frontend/CodeGenAction.h1
-rw-r--r--lib/Frontend/CodeGenAction.cpp2
2 files changed, 3 insertions, 0 deletions
diff --git a/include/clang/Frontend/CodeGenAction.h b/include/clang/Frontend/CodeGenAction.h
index 07e02e5c6e..642e02a2f7 100644
--- a/include/clang/Frontend/CodeGenAction.h
+++ b/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/lib/Frontend/CodeGenAction.cpp b/lib/Frontend/CodeGenAction.cpp
index ff24854339..eb2990405d 100644
--- a/lib/Frontend/CodeGenAction.cpp
+++ b/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())