| ... | @@ -1620,6 +1620,10 @@ fn resolveType(cg: *CodeGen, ty: Type, repr: Repr) Error!Id { | ... | @@ -1620,6 +1620,10 @@ fn resolveType(cg: *CodeGen, ty: Type, repr: Repr) Error!Id { |
| 1620 | return try cg.module.opaqueType("u0"); | 1620 | return try cg.module.opaqueType("u0"); |
| 1621 | } | 1621 | } |
| 1622 | const int_info = ty.intInfo(zcu); | 1622 | const int_info = ty.intInfo(zcu); |
| | 1623 | const backing_bits, const big_int = cg.module.backingIntBits(int_info.bits); |
| | 1624 | if (big_int and backing_bits > 64) { |
| | 1625 | return cg.fail("integer width of {} bits is not yet supported on the SPIR-V backend", .{int_info.bits}); |
| | 1626 | } |
| 1623 | return try cg.module.intType(int_info.signedness, int_info.bits); | 1627 | return try cg.module.intType(int_info.signedness, int_info.bits); |
| 1624 | }, | 1628 | }, |
| 1625 | .@"enum" => return try cg.resolveType(ty.intTagType(zcu), repr), | 1629 | .@"enum" => return try cg.resolveType(ty.intTagType(zcu), repr), |