[PATCH] D42328: [sanitizer] Fix syntax error introduced in r322991

Petr Hosek via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 19 18:21:20 PST 2018


phosek created this revision.
phosek added reviewers: vitalybuka, mcgrathr, jakehehrlich.
Herald added subscribers: Sanitizers, llvm-commits, kubamracek.

This triggers compiler error when building sanitizers for Fuchsia.


Repository:
  rCRT Compiler Runtime

https://reviews.llvm.org/D42328

Files:
  lib/sanitizer_common/sanitizer_coverage_fuchsia.cc


Index: lib/sanitizer_common/sanitizer_coverage_fuchsia.cc
===================================================================
--- lib/sanitizer_common/sanitizer_coverage_fuchsia.cc
+++ lib/sanitizer_common/sanitizer_coverage_fuchsia.cc
@@ -113,10 +113,10 @@
   // We can always spare the 32G of address space.
   static constexpr size_t MappingSize = sizeof(uptr) << 32;
 
-  BlockingMutex setup_lock_ = {LINKER_INITIALIZED};
+  BlockingMutex setup_lock_ = BlockingMutex{LINKER_INITIALIZED};
   uptr *array_ = nullptr;
   u32 next_index_ = 0;
-  zx_handle_t vmo _ = {};
+  zx_handle_t vmo_ = {};
   char vmo_name_[ZX_MAX_NAME_LEN] = {};
 
   size_t DataSize() const { return next_index_ * sizeof(uintptr_t); }


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D42328.130739.patch
Type: text/x-patch
Size: 710 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180120/fa76f343/attachment.bin>


More information about the llvm-commits mailing list