We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 00eddde commit be72cbdCopy full SHA for be72cbd
src/compiler.jl
@@ -5265,7 +5265,9 @@ end
5265
any(T2 isa Core.TypeofVararg for T2 in jTy.parameters)
5266
)
5267
5268
- if offset < sizeof(jTy) && isa(sz, LLVM.ConstantInt) && sizeof(jTy) - offset >= convert(Int, sz)
+
5269
+ size = Base.datatype_layoutsize(jTy)
5270
+ if offset < size && isa(sz, LLVM.ConstantInt) && size - offset >= convert(Int, sz)
5271
lim = convert(Int, sz)
5272
md = to_fullmd(jTy, offset, lim)
5273
@assert byref == GPUCompiler.BITS_REF ||
0 commit comments