diff options
Diffstat (limited to 'src/Module.zig')
| -rw-r--r-- | src/Module.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Module.zig b/src/Module.zig index ba76c16faf..c3377225c6 100644 --- a/src/Module.zig +++ b/src/Module.zig @@ -6360,7 +6360,7 @@ pub fn errorSetFromUnsortedNames( /// Supports only pointers, not pointer-like optionals. pub fn ptrIntValue(mod: *Module, ty: Type, x: u64) Allocator.Error!Value { - assert(ty.zigTypeTag(mod) == .Pointer); + assert(ty.zigTypeTag(mod) == .Pointer and !ty.isSlice(mod)); const i = try intern(mod, .{ .ptr = .{ .ty = ty.toIntern(), .addr = .{ .int = (try mod.intValue_u64(Type.usize, x)).toIntern() }, |
