Skip to content

Commit a48c4b1

Browse files
committed
Fix comment
1 parent f619c71 commit a48c4b1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

zjit/src/hir.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1018,7 +1018,8 @@ impl Insn {
10181018
Insn::StringCopy { .. } => Effect::from_write(effect_sets::Allocator),
10191019
Insn::NewArray { .. } => Effect::from_write(effect_sets::Allocator),
10201020
Insn::NewHash { elements, .. } => {
1021-
// Empty is elidable
1021+
// NewHash's operands may be hashed and compared for equality, which could have
1022+
// side-effects. Empty hashes are definitely elidable.
10221023
if elements.is_empty() {
10231024
Effect::from_write(effect_sets::Allocator)
10241025
}

0 commit comments

Comments
 (0)