Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
mark loads_const as const fn
  • Loading branch information
ShaharNaveh committed Jul 3, 2026
commit 5456caf6b0ac73a3995dc1213c91c0b7a73f981e
2 changes: 1 addition & 1 deletion crates/codegen/src/ir.rs
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,7 @@ impl InstructionInfo {
}

/// flowgraph.c loads_const
fn loads_const(&self) -> bool {
const fn loads_const(&self) -> bool {
self.instr.has_const() || matches!(self.instr.real_opcode(), Some(Opcode::LoadSmallInt))
}

Expand Down
Loading