| ... | @@ -655,7 +655,7 @@ pub fn addrSpaceCastIsValid( | ... | @@ -655,7 +655,7 @@ pub fn addrSpaceCastIsValid( |
| 655 | const arch = target.cpu.arch; | 655 | const arch = target.cpu.arch; |
| 656 | switch (arch) { | 656 | switch (arch) { |
| 657 | .x86_64, .i386 => return arch.supportsAddressSpace(from) and arch.supportsAddressSpace(to), | 657 | .x86_64, .i386 => return arch.supportsAddressSpace(from) and arch.supportsAddressSpace(to), |
| 658 | .amdgcn => { | 658 | .nvptx64, .nvptx, .amdgcn => { |
| 659 | const to_generic = arch.supportsAddressSpace(from) and to == .generic; | 659 | const to_generic = arch.supportsAddressSpace(from) and to == .generic; |
| 660 | const from_generic = arch.supportsAddressSpace(to) and from == .generic; | 660 | const from_generic = arch.supportsAddressSpace(to) and from == .generic; |
| 661 | return to_generic or from_generic; | 661 | return to_generic or from_generic; |