Skip to content

Commit a449ffa

Browse files
authored
move __sanitizer_set_report_path to it's original location
1 parent f19714d commit a449ffa

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

compiler-rt/lib/asan/asan_rtl.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -415,8 +415,6 @@ void ApplyFlags() {
415415
SetCanPoisonMemory(flags()->poison_heap);
416416
SetMallocContextSize(common_flags()->malloc_context_size);
417417

418-
__sanitizer_set_report_path(common_flags()->log_path);
419-
420418
__asan_option_detect_stack_use_after_return =
421419
flags()->detect_stack_use_after_return;
422420

@@ -461,6 +459,7 @@ static bool AsanInitInternal() {
461459
SetCheckUnwindCallback(CheckUnwind);
462460
SetPrintfAndReportCallback(AppendToErrorMessageBuffer);
463461

462+
__sanitizer_set_report_path(common_flags()->log_path);
464463
__sanitizer::InitializePlatformEarly();
465464

466465
// Setup internal allocator callback.

0 commit comments

Comments
 (0)