Fix assertion in ExternalInterpreterSource
As far as I can understand the intent, this wants to check that the diagnostic is *not* because it's an unsupported AST node.
This commit is contained in:
parent
ba5faff605
commit
345d51a8b0
@ -111,7 +111,7 @@ namespace cling {
|
||||
const Decl* To = llvm::cantFail(m_Importer->Import(declToImport));
|
||||
assert(To && "Import did not work!");
|
||||
assert((DS.empty() ||
|
||||
DS[0].getID() == clang::diag::err_unsupported_ast_node) &&
|
||||
DS[0].getID() != clang::diag::err_unsupported_ast_node) &&
|
||||
"Import not supported!");
|
||||
#endif
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user