Skip to content

Commit 0a27415

Browse files
[AArch64] Use nullptr instead of NULL (NFC) (#166083)
Identified with modernize-use-nullptr.
1 parent c1d1a40 commit 0a27415

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

llvm/unittests/Target/AArch64/AArch64InstPrinterTest.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,8 @@ static std::string AArch64InstPrinterTestPrintAlignedLabel(uint64_t value) {
3636
MCAsmInfo MAI;
3737
MCInstrInfo MII;
3838
MCRegisterInfo MRI;
39-
MCSubtargetInfo STI(Triple(""), "", "", "", {},
40-
ArrayRef((SubtargetFeatureKV *)NULL, (size_t)0),
41-
ArrayRef((SubtargetSubTypeKV *)NULL, (size_t)0), NULL,
42-
NULL, NULL, NULL, NULL, NULL);
39+
MCSubtargetInfo STI(Triple(""), "", "", "", {}, {}, {}, nullptr, nullptr,
40+
nullptr, nullptr, nullptr, nullptr);
4341
MCContext Ctx(Triple(""), &MAI, &MRI, &STI);
4442
MCInst MI;
4543

0 commit comments

Comments
 (0)