[PATCH] D37658: [ubsan] Save binary name before parsing options

Vitaly Buka via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 11 11:34:26 PDT 2017


This revision was automatically updated to reflect the committed changes.
Closed by commit rL312933: [ubsan] Save binary name before parsing options (authored by vitalybuka).

Changed prior to commit:
  https://reviews.llvm.org/D37658?vs=114476&id=114644#toc

Repository:
  rL LLVM

https://reviews.llvm.org/D37658

Files:
  compiler-rt/trunk/lib/ubsan/ubsan_init.cc


Index: compiler-rt/trunk/lib/ubsan/ubsan_init.cc
===================================================================
--- compiler-rt/trunk/lib/ubsan/ubsan_init.cc
+++ compiler-rt/trunk/lib/ubsan/ubsan_init.cc
@@ -40,8 +40,8 @@
 
 static void CommonStandaloneInit() {
   SanitizerToolName = GetSanititizerToolName();
-  InitializeFlags();
   CacheBinaryName();
+  InitializeFlags();
   __sanitizer_set_report_path(common_flags()->log_path);
   AndroidLogInit();
   InitializeCoverage(common_flags()->coverage, common_flags()->coverage_dir);


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D37658.114644.patch
Type: text/x-patch
Size: 540 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170911/84c0bc7a/attachment.bin>


More information about the llvm-commits mailing list