diff options
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); |