Skip to content

Commit 14aa2bf

Browse files
committed
Address @b-sumner comments.
1 parent 5e96741 commit 14aa2bf

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

compiler-rt/lib/asan/asan_errors.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -803,7 +803,7 @@ void ErrorNonSelfAMDGPU::PrintMallocStack() {
803803
"(or free) call of size %u from%s\n",
804804
d.Location(), (void *)device_address[0],
805805
(u32)(device_address[0] - (plo + offset)), d.Allocation(),
806-
((int*)plo)[7], d.Default());
806+
((u32*)plo)[7], d.Default());
807807
// TODO: The code object with the malloc call may not be the same
808808
// code object trying the illegal access. A mechanism is needed
809809
// to obtain the former.
@@ -819,7 +819,7 @@ void ErrorNonSelfAMDGPU::PrintMallocStack() {
819819
d.Location(), (void *)device_address[0],
820820
(u32)((phi + offset) - device_address[0]),
821821

822-
d.Allocation(), ((int*)phi)[7], d.Default());
822+
d.Allocation(), ((u32*)phi)[7], d.Default());
823823
PrintStack();
824824
}
825825
}
@@ -830,9 +830,9 @@ void ErrorNonSelfAMDGPU::Print() {
830830
Printf("%s", d.Error());
831831
Report("ERROR: AddressSanitizer: %s on amdgpu device %d at pc %p\n",
832832
bug_descr, device_id, (void *)callstack[0]);
833-
Printf("%s%s of size %zu in workgroup id (%zu,%zu,%zu)\n", d.Access(),
834-
(is_write ? "WRITE" : "READ"), access_size, (usize)wg.idx,
835-
(usize)wg.idy, (usize)wg.idz);
833+
Printf("%s%s of size %zu in workgroup id (%llu,%llu,%llu)\n", d.Access(),
834+
(is_write ? "WRITE" : "READ"), access_size, wg.idx,
835+
wg.idy, wg.idz);
836836
Printf("%s", d.Default());
837837
PrintStack();
838838
Printf("%s", d.Location());

0 commit comments

Comments
 (0)