Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
HertzDevil committed Feb 28, 2025
1 parent a843606 commit 886058a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/llvm/enums.cr
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ module LLVM
# the nil cast
@@kind_ids = nil.as(Hash(Attribute, UInt32)?)

private def self.kind_ids
protected def self.kind_ids
@@kind_ids ||= load_llvm_kinds_from_names
end

Expand All @@ -73,7 +73,7 @@ module LLVM
end

def each_kind(& : UInt32 ->)
kind_ids = self.kind_ids
kind_ids = Attribute.kind_ids
each do |member|
yield kind_ids[member]
end
Expand Down

0 comments on commit 886058a

Please sign in to comment.