Skip to content

Commit 205441b

Browse files
committed
revert
1 parent 735736f commit 205441b

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

compiler-rt/lib/asan/asan_descriptions.cpp

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -449,10 +449,12 @@ AddressDescription::AddressDescription(uptr addr, uptr access_size,
449449
// are put to the STACK region for unknown reasons. Check global first can
450450
// workaround this issue.
451451
// TODO: Look into whether there's a different solution to this problem.
452+
#if SANITIZER_AIX
452453
if (GetGlobalAddressInformation(addr, access_size, &data.global)) {
453454
data.kind = kAddressKindGlobal;
454455
return;
455456
}
457+
#endif
456458

457459
if (GetHeapAddressInformation(addr, access_size, &data.heap)) {
458460
data.kind = kAddressKindHeap;
@@ -471,6 +473,13 @@ AddressDescription::AddressDescription(uptr addr, uptr access_size,
471473
return;
472474
}
473475

476+
#if !SANITIZER_AIX
477+
if (GetGlobalAddressInformation(addr, access_size, &data.global)) {
478+
data.kind = kAddressKindGlobal;
479+
return;
480+
}
481+
#endif
482+
474483
data.kind = kAddressKindWild;
475484
data.wild.addr = addr;
476485
data.wild.access_size = access_size;

0 commit comments

Comments
 (0)