Skip to content

Commit 449e8c8

Browse files
committed
[Clang] Fix type in ItaniumCXXABI for SPIRV
Before, a ptr to function (addrspace(0)) was used. Now we use a pointer to the default address space, the generic addrspace(4). This used to work since before the unqual addrspace used to match the default address space.
1 parent 30584b5 commit 449e8c8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/lib/CodeGen/ItaniumCXXABI.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5039,7 +5039,7 @@ static void InitCatchParam(CodeGenFunction &CGF,
50395039
auto catchRD = CatchType->getAsCXXRecordDecl();
50405040
CharUnits caughtExnAlignment = CGF.CGM.getClassPointerAlignment(catchRD);
50415041

5042-
llvm::Type *PtrTy = CGF.UnqualPtrTy; // addrspace 0 ok
5042+
llvm::Type *PtrTy = CGF.Int8PtrTy;
50435043

50445044
// Check for a copy expression. If we don't have a copy expression,
50455045
// that means a trivial copy is okay.

0 commit comments

Comments
 (0)