[PATCH] D121856: [scudo] Use nullptr instead of integer-to-pointer cast
Dominic Chen via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Mar 17 10:18:04 PDT 2022
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rG7abd6837a0a0: [scudo] Use nullptr instead of integer-to-pointer cast (authored by ddcc).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D121856/new/
https://reviews.llvm.org/D121856
Files:
compiler-rt/lib/scudo/standalone/combined.h
Index: compiler-rt/lib/scudo/standalone/combined.h
===================================================================
--- compiler-rt/lib/scudo/standalone/combined.h
+++ compiler-rt/lib/scudo/standalone/combined.h
@@ -1271,8 +1271,8 @@
}
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,
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D121856.416231.patch
Type: text/x-patch
Size: 653 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220317/9f9a8cb3/attachment.bin>
More information about the llvm-commits
mailing list