[scudo] Use nullptr instead of integer-to-pointer cast

Differential Revision: https://reviews.llvm.org/D121856
This commit is contained in:
Dominic Chen 2022-03-16 13:49:29 -07:00
parent 4787e5c34e
commit 7abd6837a0
1 changed files with 2 additions and 2 deletions

View File

@ -1271,8 +1271,8 @@ private:
}
static const size_t NumErrorReports =
sizeof(((scudo_error_info *)0)->reports) /
sizeof(((scudo_error_info *)0)->reports[0]);
sizeof(((scudo_error_info *)nullptr)->reports) /
sizeof(((scudo_error_info *)nullptr)->reports[0]);
static void getInlineErrorInfo(struct scudo_error_info *ErrorInfo,
size_t &NextErrorReport, uintptr_t FaultAddr,