We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d040ceb commit 662cd0aCopy full SHA for 662cd0a
src/cgutils.cpp
@@ -505,6 +505,8 @@ static Type *julia_struct_to_llvm(jl_value_t *jt)
505
lty = jl_pvalue_llvmt;
506
else
507
lty = ty==(jl_value_t*)jl_bool_type ? T_int8 : julia_type_to_llvm(ty);
508
+ if (lty == T_void || lty->isEmptyTy())
509
+ continue;
510
latypes.push_back(lty);
511
}
512
structdecl->setBody(latypes);
test/core.jl
@@ -1829,3 +1829,13 @@ end
1829
1830
# issue #7582
1831
aₜ = "a variable using Unicode 6"
1832
+
1833
+immutable My8156{A, B}
1834
+ a::A
1835
+ b::B
1836
+end
1837
+let m = My8156(nothing, 1)
1838
+ @test sizeof(m) == sizeof(1)
1839
+ @test m.a === nothing
1840
+ @test m.b === 1
1841
0 commit comments