diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2015-11-12 16:29:24 +0000 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2015-11-12 16:29:24 +0000 |
| commit | 8455cf0142d9ccc150bcdee7ed0633b8f2bec626 (patch) | |
| tree | 9b02d2dc4c0efff785c66f830888521076c51086 | |
| parent | b58fb2f47a4f792fed292b139c2b2a325ed3abb5 (diff) | |
| download | bcm5719-llvm-8455cf0142d9ccc150bcdee7ed0633b8f2bec626.tar.gz bcm5719-llvm-8455cf0142d9ccc150bcdee7ed0633b8f2bec626.zip | |
tsan: fix windows Go build
CompareModulesBase is an unused function.
llvm-svn: 252907
| -rw-r--r-- | compiler-rt/lib/sanitizer_common/sanitizer_win.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_win.cc b/compiler-rt/lib/sanitizer_common/sanitizer_win.cc index bcebce0b294..bc0cdcb332c 100644 --- a/compiler-rt/lib/sanitizer_common/sanitizer_win.cc +++ b/compiler-rt/lib/sanitizer_common/sanitizer_win.cc @@ -220,12 +220,14 @@ struct ModuleInfo { uptr end_address; }; +#ifndef SANITIZER_GO int CompareModulesBase(const void *pl, const void *pr) { const ModuleInfo *l = (ModuleInfo *)pl, *r = (ModuleInfo *)pr; if (l->base_address < r->base_address) return -1; return l->base_address > r->base_address; } +#endif } // namespace #ifndef SANITIZER_GO |

