Reset the diagnostic client on recovery too.

This commit is contained in:
Vassil Vassilev 2013-12-12 14:16:48 +01:00 committed by sftnight
parent e443f83a0b
commit 318427ba99
2 changed files with 2 additions and 1 deletions

View File

@ -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();

View File

@ -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