Adapt llvmorg-19-init-9465-g39adc8f42329: BuiltinType::ArraySection

This commit is contained in:
Fangrui Song 2024-05-05 17:43:08 -07:00
parent 559b416409
commit e5e101253a

View File

@ -337,8 +337,12 @@ const char *clangBuiltinTypeName(int kind) {
return "queue_t"; return "queue_t";
case BuiltinType::OCLReserveID: case BuiltinType::OCLReserveID:
return "reserve_id_t"; return "reserve_id_t";
#if LLVM_VERSION_MAJOR >= 19 // llvmorg-19-init-9465-g39adc8f42329
case BuiltinType::ArraySection:
#else
case BuiltinType::OMPArraySection: case BuiltinType::OMPArraySection:
return "<OpenMP array section type>"; #endif
return "<array section type>";
default: default:
return ""; return "";
} }