Skip to content

Commit bcc50ec

Browse files
committed
fixup! fixup! fixup! fixup! fix fallback
1 parent 4e9811b commit bcc50ec

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

base/loading.jl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2920,6 +2920,10 @@ function feature_names()
29202920
fnames = Ref{Ptr{FeatureName}}()
29212921
nf = Ref{Csize_t}()
29222922
@ccall jl_reflect_feature_names(fnames::Ptr{Ptr{FeatureName}}, nf::Ptr{Csize_t})::Cvoid
2923+
if fnames[] == C_NULL
2924+
@assert nf[] == 0
2925+
return Vector{FeatureName}(undef, 0)
2926+
end
29232927
Base.unsafe_wrap(Array, fnames[], nf[], own=false)
29242928
end
29252929

src/processor_fallback.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
// Fallback processor detection and dispatch
44

5-
static constexpr FeatureName feature_names[0];
5+
static constexpr FeatureName *feature_names = nullptr;
66
static constexpr uint32_t nfeature_names = 0;
77

88
namespace Fallback {

0 commit comments

Comments
 (0)