[PATCH] D75693: [GWP-ASan] Fix thread ID.

Mitch Phillips via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Mar 5 10:58:48 PST 2020


This revision was automatically updated to reflect the committed changes.
Closed by commit rG85c0b34fc5a5: [GWP-ASan] Fix thread ID. (authored by hctim).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D75693/new/

https://reviews.llvm.org/D75693

Files:
  compiler-rt/lib/gwp_asan/platform_specific/common_posix.cpp
  compiler-rt/lib/gwp_asan/platform_specific/guarded_pool_allocator_posix.cpp


Index: compiler-rt/lib/gwp_asan/platform_specific/guarded_pool_allocator_posix.cpp
===================================================================
--- compiler-rt/lib/gwp_asan/platform_specific/guarded_pool_allocator_posix.cpp
+++ compiler-rt/lib/gwp_asan/platform_specific/guarded_pool_allocator_posix.cpp
@@ -15,7 +15,6 @@
 #include <stdlib.h>
 #include <string.h>
 #include <sys/mman.h>
-#include <sys/syscall.h>
 #include <sys/types.h>
 #include <unistd.h>
 
Index: compiler-rt/lib/gwp_asan/platform_specific/common_posix.cpp
===================================================================
--- compiler-rt/lib/gwp_asan/platform_specific/common_posix.cpp
+++ compiler-rt/lib/gwp_asan/platform_specific/common_posix.cpp
@@ -8,6 +8,9 @@
 
 #include "gwp_asan/common.h"
 
+#include <sys/syscall.h>
+#include <unistd.h>
+
 namespace gwp_asan {
 
 uint64_t getThreadID() {


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D75693.248552.patch
Type: text/x-patch
Size: 879 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200305/c851480f/attachment.bin>


More information about the llvm-commits mailing list