From f2f052f3fbbd68b798c0e4d37afcaa151b8f1426 Mon Sep 17 00:00:00 2001 From: Lilith Orion Hafner Date: Fri, 16 May 2025 15:03:37 -0500 Subject: [PATCH 1/2] =?UTF-8?q?Revert=20"Documentation:=20Remove=20warning?= =?UTF-8?q?=20that=20nonstandard=20primitive=20type=20sizes=20m=E2=80=A6"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit 3fc2a159aeeb295dd28e4814b177be6d538e8aba. --- doc/src/manual/types.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/src/manual/types.md b/doc/src/manual/types.md index 17314f8d1d288..926b33e17460a 100644 --- a/doc/src/manual/types.md +++ b/doc/src/manual/types.md @@ -301,7 +301,7 @@ a name. A primitive type can optionally be declared to be a subtype of some supe is omitted, then the type defaults to having `Any` as its immediate supertype. The declaration of [`Bool`](@ref) above therefore means that a boolean value takes eight bits to store, and has [`Integer`](@ref) as its immediate supertype. Currently, only sizes that are multiples of -8 bits are supported. +8 bits are supported and you are likely to experience LLVM bugs with sizes other than those used above. Therefore, boolean values, although they really need just a single bit, cannot be declared to be any smaller than eight bits. From c1a6bf14a97be451ab1b68abb85b3089a24254f5 Mon Sep 17 00:00:00 2001 From: Lilith Orion Hafner Date: Fri, 16 May 2025 15:05:02 -0500 Subject: [PATCH 2/2] Update types.md Per https://github.com/JuliaLang/julia/issues/58434#issuecomment-2887208822, seems like this might not be an LLVM bug. --- doc/src/manual/types.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/src/manual/types.md b/doc/src/manual/types.md index 926b33e17460a..7179ce78969a1 100644 --- a/doc/src/manual/types.md +++ b/doc/src/manual/types.md @@ -301,7 +301,7 @@ a name. A primitive type can optionally be declared to be a subtype of some supe is omitted, then the type defaults to having `Any` as its immediate supertype. The declaration of [`Bool`](@ref) above therefore means that a boolean value takes eight bits to store, and has [`Integer`](@ref) as its immediate supertype. Currently, only sizes that are multiples of -8 bits are supported and you are likely to experience LLVM bugs with sizes other than those used above. +8 bits are supported and you are likely to experience Julia or LLVM bugs with sizes other than those used above. Therefore, boolean values, although they really need just a single bit, cannot be declared to be any smaller than eight bits.