Skip to content

Commit 8cd22f3

Browse files
committed
again
1 parent e7e3b7b commit 8cd22f3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

compiler-rt/lib/sanitizer_common/sanitizer_tls_get_addr.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -151,10 +151,10 @@ DTLS::DTV *DTLS_on_tls_get_addr(void *arg_void, void *res,
151151
// This may happen inside the DTOR of main thread, so just ignore it.
152152
tls_size = 0;
153153
}
154-
// if (tls_size) {
155-
// CHECK_LE(tls_beg, reinterpret_cast<uptr>(res) - kDtvOffset);
156-
// CHECK_LT(reinterpret_cast<uptr>(res) - kDtvOffset, tls_beg + tls_size);
157-
// }
154+
if (tls_size) {
155+
CHECK_LE(tls_beg, reinterpret_cast<uptr>(res) - kDtvOffset);
156+
CHECK_LT(reinterpret_cast<uptr>(res) - kDtvOffset, tls_beg + tls_size);
157+
}
158158
dtv->beg = tls_beg;
159159
dtv->size = tls_size;
160160
return dtv;

0 commit comments

Comments
 (0)