Skip to content

Commit e5e1012

Browse files
committed
Adapt llvmorg-19-init-9465-g39adc8f42329: BuiltinType::ArraySection
1 parent 559b416 commit e5e1012

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/clang_tu.cc

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,8 +337,12 @@ const char *clangBuiltinTypeName(int kind) {
337337
return "queue_t";
338338
case BuiltinType::OCLReserveID:
339339
return "reserve_id_t";
340+
#if LLVM_VERSION_MAJOR >= 19 // llvmorg-19-init-9465-g39adc8f42329
341+
case BuiltinType::ArraySection:
342+
#else
340343
case BuiltinType::OMPArraySection:
341-
return "<OpenMP array section type>";
344+
#endif
345+
return "<array section type>";
342346
default:
343347
return "";
344348
}

0 commit comments

Comments
 (0)