[ASan/Win] Initialize sandbox-related stuff when asked to
authorTimur Iskhodzhanov <timurrrr@google.com>
Thu, 23 Apr 2015 12:58:11 +0000 (12:58 +0000)
committerTimur Iskhodzhanov <timurrrr@google.com>
Thu, 23 Apr 2015 12:58:11 +0000 (12:58 +0000)
llvm-svn: 235591

compiler-rt/lib/sanitizer_common/sanitizer_win.cc

index 4d6863b..27e4b84 100644 (file)
@@ -267,8 +267,9 @@ void ReExec() {
 }
 
 void PrepareForSandboxing(__sanitizer_sandbox_arguments *args) {
-  (void)args;
-  // Nothing here for now.
+#if !SANITIZER_GO
+  CovPrepareForSandboxing(args);
+#endif
 }
 
 bool StackSizeIsUnlimited() {