[llvm] [AArch64] Use nullptr instead of NULL (NFC) (PR #166083)
Kazu Hirata via llvm-commits
llvm-commits at lists.llvm.org
Sun Nov 2 13:25:34 PST 2025
================
@@ -37,9 +37,9 @@ static std::string AArch64InstPrinterTestPrintAlignedLabel(uint64_t value) {
MCInstrInfo MII;
MCRegisterInfo MRI;
MCSubtargetInfo STI(Triple(""), "", "", "", {},
- ArrayRef((SubtargetFeatureKV *)NULL, (size_t)0),
- ArrayRef((SubtargetSubTypeKV *)NULL, (size_t)0), NULL,
- NULL, NULL, NULL, NULL, NULL);
+ ArrayRef((SubtargetFeatureKV *)nullptr, (size_t)0),
+ ArrayRef((SubtargetSubTypeKV *)nullptr, (size_t)0),
----------------
kazutakahirata wrote:
Thank you for pointing out! I'm going with `{}`. The original code is already using `{}` for `ArrayRef<StringRef>` just one line above.
https://github.com/llvm/llvm-project/pull/166083
More information about the llvm-commits
mailing list