[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:12:47 PDT 2017
vitalybuka updated this revision to Diff 114692.
vitalybuka added a comment.
Correct rebase.
https://reviews.llvm.org/D37658
Files:
compiler-rt/lib/ubsan/ubsan_init.cc
compiler-rt/test/sanitizer_common/TestCases/options-include.cc
Index: compiler-rt/test/sanitizer_common/TestCases/options-include.cc
===================================================================
--- compiler-rt/test/sanitizer_common/TestCases/options-include.cc
+++ compiler-rt/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
Index: compiler-rt/lib/ubsan/ubsan_init.cc
===================================================================
--- compiler-rt/lib/ubsan/ubsan_init.cc
+++ compiler-rt/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.114692.patch
Type: text/x-patch
Size: 962 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170911/32786730/attachment.bin>
More information about the llvm-commits
mailing list