Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

YJIT: Fix a compilation warning with release build #7092

Merged
merged 1 commit into from Jan 10, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 4 additions & 1 deletion yjit/src/asm/mod.rs
Expand Up @@ -356,12 +356,15 @@ impl CodeBlock {
self.asm_comments.get(&pos)
}

#[cfg(feature = "disasm")]
pub fn remove_comments(&mut self, start_addr: CodePtr, end_addr: CodePtr) {
#[cfg(feature = "disasm")]
for addr in start_addr.into_usize()..end_addr.into_usize() {
self.asm_comments.remove(&addr);
}
}
#[cfg(not(feature = "disasm"))]
#[inline]
pub fn remove_comments(&mut self, _: CodePtr, _: CodePtr) {}

pub fn clear_comments(&mut self) {
#[cfg(feature = "disasm")]
Expand Down