summaryrefslogtreecommitdiff
path: root/lib/sanitizer_common/sanitizer_common_syscalls.inc
diff options
context:
space:
mode:
authorEvgeniy Stepanov <eugeni.stepanov@gmail.com>2013-11-22 09:26:10 +0000
committerEvgeniy Stepanov <eugeni.stepanov@gmail.com>2013-11-22 09:26:10 +0000
commit9800808077fbe659757b2c7b34dfb660f3e38e12 (patch)
treecb02f7d1e73f344b4d6674edac6afe28c1805603 /lib/sanitizer_common/sanitizer_common_syscalls.inc
parent29d306afd9c2cab2eaac1dab237892df327d166f (diff)
[sanitizer] Fix build.
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@195433 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/sanitizer_common/sanitizer_common_syscalls.inc')
-rw-r--r--lib/sanitizer_common/sanitizer_common_syscalls.inc6
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/sanitizer_common/sanitizer_common_syscalls.inc b/lib/sanitizer_common/sanitizer_common_syscalls.inc
index fa65c1683..97ece7032 100644
--- a/lib/sanitizer_common/sanitizer_common_syscalls.inc
+++ b/lib/sanitizer_common/sanitizer_common_syscalls.inc
@@ -2713,11 +2713,7 @@ PRE_SYSCALL(perf_event_open)(void *attr_uptr, long pid, long cpu, long group_fd,
long flags) {}
POST_SYSCALL(perf_event_open)(long res, void *attr_uptr, long pid, long cpu,
- long group_fd, long flags) {
- if (res >= 0) {
- if (attr_uptr) POST_WRITE(attr_uptr, struct_perf_event_attr_sz);
- }
-}
+ long group_fd, long flags) {}
PRE_SYSCALL(mmap_pgoff)(long addr, long len, long prot, long flags, long fd,
long pgoff) {}