Skip to content

Commit

Permalink
fixup! fixup! fixup! fixup! fix fallback
Browse files Browse the repository at this point in the history
  • Loading branch information
vchuravy committed Jul 20, 2023
1 parent b3bdfe0 commit c7e9ee8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions base/loading.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2920,6 +2920,10 @@ function feature_names()
fnames = Ref{Ptr{FeatureName}}()
nf = Ref{Csize_t}()
@ccall jl_reflect_feature_names(fnames::Ptr{Ptr{FeatureName}}, nf::Ptr{Csize_t})::Cvoid
if fnames[] == C_NULL
@assert nf[] == 0
return Vector{FeatureName}(undef, 0)
end
Base.unsafe_wrap(Array, fnames[], nf[], own=false)
end

Expand Down
2 changes: 1 addition & 1 deletion src/processor_fallback.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

// Fallback processor detection and dispatch

static constexpr FeatureName feature_names[0];
static constexpr FeatureName *feature_names = nullptr;
static constexpr uint32_t nfeature_names = 0;

namespace Fallback {
Expand Down

0 comments on commit c7e9ee8

Please sign in to comment.