Skip to content

Commit 2474833

Browse files
authored
[Clang][AMDGPU] Handle builtin types more generically. NFC. (#109004)
Tweak encodeTypeForFunctionPointerAuth to handle all AMDGPU builtin types generically instead of just __amdgpu_buffer_rsrc_t which happens to be the only one defined so far.
1 parent 0dd5685 commit 2474833

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

clang/lib/AST/ASTContext.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3377,7 +3377,8 @@ static void encodeTypeForFunctionPointerAuth(const ASTContext &Ctx,
33773377
#include "clang/Basic/HLSLIntangibleTypes.def"
33783378
case BuiltinType::Dependent:
33793379
llvm_unreachable("should never get here");
3380-
case BuiltinType::AMDGPUBufferRsrc:
3380+
#define AMDGPU_TYPE(Name, Id, SingletonId) case BuiltinType::Id:
3381+
#include "clang/Basic/AMDGPUTypes.def"
33813382
case BuiltinType::WasmExternRef:
33823383
#define RVV_TYPE(Name, Id, SingletonId) case BuiltinType::Id:
33833384
#include "clang/Basic/RISCVVTypes.def"

0 commit comments

Comments
 (0)