From 9d8913cf049d912e400676e8445aa69cafdf63ec Mon Sep 17 00:00:00 2001
From: Vassil Vassilev <vvasilev@cern.ch>
Date: Thu, 12 Dec 2013 14:16:48 +0100
Subject: [PATCH] Reset the diagnostic client on recovery too.

---
 interpreter/cling/lib/Interpreter/ASTNodeEraser.cpp | 1 +
 interpreter/cling/test/CodeGeneration/VTables.C     | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/interpreter/cling/lib/Interpreter/ASTNodeEraser.cpp b/interpreter/cling/lib/Interpreter/ASTNodeEraser.cpp
index b01b07978af..4308a9ea5d4 100644
--- a/interpreter/cling/lib/Interpreter/ASTNodeEraser.cpp
+++ b/interpreter/cling/lib/Interpreter/ASTNodeEraser.cpp
@@ -791,6 +791,7 @@ namespace cling {
 #endif
 
     m_Sema->getDiagnostics().Reset();
+    m_Sema->getDiagnostics().getClient()->clear();
 
     // Cleanup the module from unused global values.
     //llvm::ModulePass* globalDCE = llvm::createGlobalDCEPass();
diff --git a/interpreter/cling/test/CodeGeneration/VTables.C b/interpreter/cling/test/CodeGeneration/VTables.C
index 0189947db2f..8184bb07579 100644
--- a/interpreter/cling/test/CodeGeneration/VTables.C
+++ b/interpreter/cling/test/CodeGeneration/VTables.C
@@ -1,4 +1,4 @@
-// RUN: cat %s | %cling | FileCheck %s
+// RUN: cat %s | %cling -Xclang -verify | FileCheck %s
 // XFAIL:*
 
 // Test whether the interpreter is able to generate properly the symbols 
-- 
GitLab