Browse Source

Merge pull request #1571 from cfallin/fix-aarch64-heap-oob

Fix aarch64 load trap info: HeapOutOfBounds, not OutOfBounds.
pull/1581/head
Chris Fallin 5 years ago
committed by GitHub
parent
commit
2f1a2f4225
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      cranelift/codegen/src/isa/aarch64/inst/emit.rs

4
cranelift/codegen/src/isa/aarch64/inst/emit.rs

@ -607,7 +607,7 @@ impl<O: MachSectionOutput> MachInstEmit<O> for Inst {
if let Some(srcloc) = srcloc {
// Register the offset at which the actual load instruction starts.
sink.add_trap(srcloc, TrapCode::OutOfBounds);
sink.add_trap(srcloc, TrapCode::HeapOutOfBounds);
}
match &mem {
@ -741,7 +741,7 @@ impl<O: MachSectionOutput> MachInstEmit<O> for Inst {
if let Some(srcloc) = srcloc {
// Register the offset at which the actual load instruction starts.
sink.add_trap(srcloc, TrapCode::OutOfBounds);
sink.add_trap(srcloc, TrapCode::HeapOutOfBounds);
}
match &mem {

Loading…
Cancel
Save