[llvm] 0a27415 - [AArch64] Use nullptr instead of NULL (NFC) (#166083)
via llvm-commits
llvm-commits at lists.llvm.org
Sun Nov 2 14:31:09 PST 2025
Author: Kazu Hirata
Date: 2025-11-02T14:31:05-08:00
New Revision: 0a2741570aae981a953c5ccb9b7d5df25796a070
URL: https://github.com/llvm/llvm-project/commit/0a2741570aae981a953c5ccb9b7d5df25796a070
DIFF: https://github.com/llvm/llvm-project/commit/0a2741570aae981a953c5ccb9b7d5df25796a070.diff
LOG: [AArch64] Use nullptr instead of NULL (NFC) (#166083)
Identified with modernize-use-nullptr.
Added:
Modified:
llvm/unittests/Target/AArch64/AArch64InstPrinterTest.cpp
Removed:
################################################################################
diff --git a/llvm/unittests/Target/AArch64/AArch64InstPrinterTest.cpp b/llvm/unittests/Target/AArch64/AArch64InstPrinterTest.cpp
index 4dfc0bcb0dc4c..a835a34fea58b 100644
--- a/llvm/unittests/Target/AArch64/AArch64InstPrinterTest.cpp
+++ b/llvm/unittests/Target/AArch64/AArch64InstPrinterTest.cpp
@@ -36,10 +36,8 @@ static std::string AArch64InstPrinterTestPrintAlignedLabel(uint64_t value) {
MCAsmInfo MAI;
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);
+ MCSubtargetInfo STI(Triple(""), "", "", "", {}, {}, {}, nullptr, nullptr,
+ nullptr, nullptr, nullptr, nullptr);
MCContext Ctx(Triple(""), &MAI, &MRI, &STI);
MCInst MI;
More information about the llvm-commits
mailing list