From e5e101253a07e9f40f6ea54024a9a454978f6a58 Mon Sep 17 00:00:00 2001 From: Fangrui Song Date: Sun, 5 May 2024 17:43:08 -0700 Subject: [PATCH] Adapt llvmorg-19-init-9465-g39adc8f42329: BuiltinType::ArraySection --- src/clang_tu.cc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/clang_tu.cc b/src/clang_tu.cc index 2cf8f70f..664f6fbb 100644 --- a/src/clang_tu.cc +++ b/src/clang_tu.cc @@ -337,8 +337,12 @@ const char *clangBuiltinTypeName(int kind) { return "queue_t"; case BuiltinType::OCLReserveID: return "reserve_id_t"; +#if LLVM_VERSION_MAJOR >= 19 // llvmorg-19-init-9465-g39adc8f42329 + case BuiltinType::ArraySection: +#else case BuiltinType::OMPArraySection: - return ""; +#endif + return ""; default: return ""; }