[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 14:16:33 PDT 2017
This revision was automatically updated to reflect the committed changes.
Closed by commit rL312953: [ubsan] Save binary name before parsing options (authored by vitalybuka).
Changed prior to commit:
https://reviews.llvm.org/D37658?vs=114692&id=114696#toc
Repository:
rL LLVM
https://reviews.llvm.org/D37658
Files:
compiler-rt/trunk/lib/ubsan/ubsan_init.cc
compiler-rt/trunk/test/sanitizer_common/TestCases/options-include.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);
Index: compiler-rt/trunk/test/sanitizer_common/TestCases/options-include.cc
===================================================================
--- compiler-rt/trunk/test/sanitizer_common/TestCases/options-include.cc
+++ compiler-rt/trunk/test/sanitizer_common/TestCases/options-include.cc
@@ -1,5 +1,4 @@
// RUN: %clangxx -O0 %s -o %t
-// UNSUPPORTED: ubsan
// Recursive include: options1 includes options2
// RUN: echo "symbolize=1" > %t.options1.txt
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D37658.114696.patch
Type: text/x-patch
Size: 998 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170911/4798e355/attachment.bin>
More information about the llvm-commits
mailing list