[compiler-rt] 13deda4 - [NFC][hwasan] Remove default argument
Vitaly Buka via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 18 18:29:22 PDT 2023
Author: Vitaly Buka
Date: 2023-09-18T18:28:24-07:00
New Revision: 13deda4f223ba7d0d26b6448080528e1c0f4bab1
URL: https://github.com/llvm/llvm-project/commit/13deda4f223ba7d0d26b6448080528e1c0f4bab1
DIFF: https://github.com/llvm/llvm-project/commit/13deda4f223ba7d0d26b6448080528e1c0f4bab1.diff
LOG: [NFC][hwasan] Remove default argument
Added:
Modified:
compiler-rt/lib/hwasan/hwasan_report.cpp
Removed:
################################################################################
diff --git a/compiler-rt/lib/hwasan/hwasan_report.cpp b/compiler-rt/lib/hwasan/hwasan_report.cpp
index d889a7a7e7fdbcf..daf274a751c4042 100644
--- a/compiler-rt/lib/hwasan/hwasan_report.cpp
+++ b/compiler-rt/lib/hwasan/hwasan_report.cpp
@@ -451,7 +451,7 @@ static uptr GetTopPc(StackTrace *stack) {
namespace {
class BaseReport {
public:
- BaseReport(StackTrace *stack, bool fatal, uptr tagged_addr, uptr access_size = 0)
+ BaseReport(StackTrace *stack, bool fatal, uptr tagged_addr, uptr access_size)
: scoped_report(fatal),
stack(stack),
tagged_addr(tagged_addr),
@@ -610,7 +610,7 @@ static void PrintAddressDescription(
class InvalidFreeReport : public BaseReport {
public:
InvalidFreeReport(StackTrace *stack, uptr tagged_addr)
- : BaseReport(stack, flags()->halt_on_error, tagged_addr) {}
+ : BaseReport(stack, flags()->halt_on_error, tagged_addr, 0) {}
~InvalidFreeReport();
private:
@@ -658,7 +658,7 @@ class TailOverwrittenReport : public BaseReport {
public:
explicit TailOverwrittenReport(StackTrace *stack, uptr tagged_addr,
uptr orig_size, const u8 *expected)
- : BaseReport(stack, flags()->halt_on_error, tagged_addr),
+ : BaseReport(stack, flags()->halt_on_error, tagged_addr, 0),
orig_size(orig_size),
expected(expected) {}
~TailOverwrittenReport();
More information about the llvm-commits
mailing list