Skip to content

Commit

Permalink
fix pr error
Browse files Browse the repository at this point in the history
  • Loading branch information
yingcong-wu committed Oct 24, 2024
1 parent 39c04f8 commit be440e4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/loader/layers/sanitizer/linux/symbolizer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ namespace ur_sanitizer_layer {
llvm::symbolize::LLVMSymbolizer *GetSymbolizer(bool destruct = false) {
static auto *Instance = new llvm::symbolize::LLVMSymbolizer{};
if (destruct) {
Instance = nullptr;
delete Instance;
Instance = nullptr;
}
return Instance;
}
Expand All @@ -25,7 +25,7 @@ llvm::symbolize::LLVMSymbolizer *GetSymbolizer(bool destruct = false) {
// should be after the destructors of the SanitizerLayer since we may print
// some symbolized information in the SanitizerLayer destructor.
__attribute__((destructor(101))) void DestructSymbolizer() {
GetSymbolizer(true);
(void)GetSymbolizer(true);
}

llvm::symbolize::PrinterConfig GetPrinterConfig() {
Expand Down

0 comments on commit be440e4

Please sign in to comment.