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

Fix aarch64 load trap info: HeapOutOfBounds, not OutOfBounds.
This commit is contained in:
Chris Fallin
2020-04-22 12:15:32 -07:00
committed by GitHub

View File

@@ -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 {