diff options
author | Jay Foad <jay.foad@amd.com> | 2024-09-21 10:59:50 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-21 10:59:50 +0100 |
commit | eb6e7e8f89a3d5c1cbc9856774ca00208753fb12 (patch) | |
tree | d5f14de42a6c90f29d33430c76921c1a17636d41 /llvm/unittests/CodeGen/MachineBasicBlockTest.cpp | |
parent | fc5de0af33b7fb9b9f745e70dcd351f2de4211cb (diff) | |
download | llvm-eb6e7e8f89a3d5c1cbc9856774ca00208753fb12.zip llvm-eb6e7e8f89a3d5c1cbc9856774ca00208753fb12.tar.gz llvm-eb6e7e8f89a3d5c1cbc9856774ca00208753fb12.tar.bz2 |
[unittests] Use {} instead of std::nullopt to initialize empty ArrayRef (#109388)
Follow up to #109133.
Diffstat (limited to 'llvm/unittests/CodeGen/MachineBasicBlockTest.cpp')
-rw-r--r-- | llvm/unittests/CodeGen/MachineBasicBlockTest.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/unittests/CodeGen/MachineBasicBlockTest.cpp b/llvm/unittests/CodeGen/MachineBasicBlockTest.cpp index 6dece93..25d54e8 100644 --- a/llvm/unittests/CodeGen/MachineBasicBlockTest.cpp +++ b/llvm/unittests/CodeGen/MachineBasicBlockTest.cpp @@ -42,8 +42,7 @@ TEST(FindDebugLocTest, DifferentIterators) { DIFile *OurFile = DIB.createFile("foo.c", "/bar"); DICompileUnit *OurCU = DIB.createCompileUnit(dwarf::DW_LANG_C99, OurFile, "", false, "", 0); - auto OurSubT = - DIB.createSubroutineType(DIB.getOrCreateTypeArray(std::nullopt)); + auto OurSubT = DIB.createSubroutineType(DIB.getOrCreateTypeArray({})); DISubprogram *OurFunc = DIB.createFunction(OurCU, "bees", "", OurFile, 1, OurSubT, 1, DINode::FlagZero, DISubprogram::SPFlagDefinition); |