[compiler-rt] r312933 - [ubsan] Save binary name before parsing options
Vitaly Buka via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 11 11:32:51 PDT 2017
Author: vitalybuka
Date: Mon Sep 11 11:32:51 2017
New Revision: 312933
URL: http://llvm.org/viewvc/llvm-project?rev=312933&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
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=312933&r1=312932&r2=312933&view=diff
==============================================================================
--- compiler-rt/trunk/lib/ubsan/ubsan_init.cc (original)
+++ compiler-rt/trunk/lib/ubsan/ubsan_init.cc Mon Sep 11 11:32:51 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);
More information about the llvm-commits
mailing list