YJIT: Fix a cargo test warning on x86_64 (#7428)

This commit is contained in:
Takashi Kokubun 2023-03-03 12:48:14 -08:00 committed by GitHub
parent 8e13e705f9
commit 8c8548b175
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
Notes: git 2023-03-03 20:48:41 +00:00
Merged-By: maximecb <maximecb@ruby-lang.org>

View File

@ -682,6 +682,7 @@ impl CodeBlock {
}
/// Stubbed CodeBlock for testing conditions that can arise due to code GC. Can't execute generated code.
#[cfg(target_arch = "aarch64")]
pub fn new_dummy_with_freed_pages(mut freed_pages: Vec<usize>) -> Self {
use std::ptr::NonNull;
use crate::virtualmem::*;