diff --git a/cranelift/src/disasm.rs b/cranelift/src/disasm.rs index 3977be69f3..fdea73ecb5 100644 --- a/cranelift/src/disasm.rs +++ b/cranelift/src/disasm.rs @@ -156,7 +156,11 @@ cfg_if! { .mode(arch::arm64::ArchMode::Arm) .build() .map_err(|err| err.to_string())?; - // Inline constants should be skipped + // AArch64 uses inline constants rather than a separate constant pool right now. + // Without this option, Capstone will stop disassembling as soon as it sees + // an inline constant that is not also a valid instruction. With this option, + // Capstone will print a `.byte` directive with the bytes of the inline constant + // and continue to the next instruction. cs.set_skipdata(true).map_err(|err| err.to_string())?; Ok(cs) }