Don't print name of EnumDecl if there is none

The function overload without PrintingPolicy is not available in
LLVM 16, see https://reviews.llvm.org/D134813.
This commit is contained in:
Jonas Hahnfeld 2023-07-10 08:55:03 +02:00 committed by jenkins
parent 6bfe4c2213
commit 826478d826

View File

@ -1364,7 +1364,6 @@ namespace cling {
bool ForwardDeclPrinter::shouldSkipImpl(EnumDecl *D) {
if (!D->getIdentifier()){
D->printName(Log());
Log() << "Enum: Empty name\n";
return true;
}