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:
Jonas Hahnfeld 2023-08-17 15:59:40 +02:00 committed by jenkins
parent ba5faff605
commit 345d51a8b0

View File

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