[compiler-rt] r312953 - [ubsan] Save binary name before parsing options
Vitaly Buka via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 11 14:13:06 PDT 2017
Author: vitalybuka
Date: Mon Sep 11 14:13:06 2017
New Revision: 312953
URL: http://llvm.org/viewvc/llvm-project?rev=312953&view=rev
Log:
[ubsan] Save binary name before parsing options
Summary: To parser "include" we may need to do binary name substitution.
Reviewers: eugenis, alekseyshl
Subscribers: llvm-commits, kubamracek
Differential Revision: https://reviews.llvm.org/D37658
Modified:
compiler-rt/trunk/lib/ubsan/ubsan_init.cc
compiler-rt/trunk/test/sanitizer_common/TestCases/options-include.cc
Modified: compiler-rt/trunk/lib/ubsan/ubsan_init.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/ubsan/ubsan_init.cc?rev=312953&r1=312952&r2=312953&view=diff
==============================================================================
--- compiler-rt/trunk/lib/ubsan/ubsan_init.cc (original)
+++ compiler-rt/trunk/lib/ubsan/ubsan_init.cc Mon Sep 11 14:13:06 2017
@@ -40,8 +40,8 @@ static void CommonInit() {
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);
Modified: compiler-rt/trunk/test/sanitizer_common/TestCases/options-include.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/sanitizer_common/TestCases/options-include.cc?rev=312953&r1=312952&r2=312953&view=diff
==============================================================================
--- compiler-rt/trunk/test/sanitizer_common/TestCases/options-include.cc (original)
+++ compiler-rt/trunk/test/sanitizer_common/TestCases/options-include.cc Mon Sep 11 14:13:06 2017
@@ -1,5 +1,4 @@
// RUN: %clangxx -O0 %s -o %t
-// UNSUPPORTED: ubsan
// Recursive include: options1 includes options2
// RUN: echo "symbolize=1" > %t.options1.txt
More information about the llvm-commits
mailing list