diff options
| author | Aiden Fox Ivey <aiden.foxivey@shopify.com> | 2025-09-02 17:27:34 -0400 |
|---|---|---|
| committer | Takashi Kokubun <takashikkbn@gmail.com> | 2025-09-02 15:57:14 -0700 |
| commit | 85fd5d5ab5d885347e367b24027cfa4ac215774b (patch) | |
| tree | b4d5df0e815cfb715912ad8f59ef81e3f5008481 | |
| parent | d51ea6be5061779f6fb5618e687a2b312f0ffd9a (diff) | |
ZJIT: Use Copy instead of Clone
| -rw-r--r-- | zjit/src/codegen.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/zjit/src/codegen.rs b/zjit/src/codegen.rs index 40b0e400b2..0d461cb0aa 100644 --- a/zjit/src/codegen.rs +++ b/zjit/src/codegen.rs @@ -561,7 +561,7 @@ fn gen_invokebuiltin(jit: &JITState, asm: &mut Assembler, state: &FrameState, bf fn gen_patch_point(jit: &mut JITState, asm: &mut Assembler, invariant: &Invariant, state: &FrameState) { let payload_ptr = get_or_create_iseq_payload_ptr(jit.iseq); let label = asm.new_label("patch_point").unwrap_label(); - let invariant = invariant.clone(); + let invariant = *invariant; // Compile a side exit. Fill nop instructions if the last patch point is too close. asm.patch_point(build_side_exit(jit, state, PatchPoint(invariant), Some(label))); |
