From 577f0aa54b49445d4248cf839346ce3f8632ea39 Mon Sep 17 00:00:00 2001 From: Guillaume Wenzek Date: Sat, 1 Oct 2022 15:51:45 +0200 Subject: [PATCH] addrSpaceCastIsValid nvptx --- src/target.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/target.zig b/src/target.zig index 01db8555da..9e2d26dac6 100644 --- a/src/target.zig +++ b/src/target.zig @@ -655,7 +655,7 @@ pub fn addrSpaceCastIsValid( const arch = target.cpu.arch; switch (arch) { .x86_64, .i386 => return arch.supportsAddressSpace(from) and arch.supportsAddressSpace(to), - .amdgcn => { + .nvptx64, .nvptx, .amdgcn => { const to_generic = arch.supportsAddressSpace(from) and to == .generic; const from_generic = arch.supportsAddressSpace(to) and from == .generic; return to_generic or from_generic;