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/Transforms/Utils/CloningTest.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/Transforms/Utils/CloningTest.cpp')
-rw-r--r-- | llvm/unittests/Transforms/Utils/CloningTest.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/unittests/Transforms/Utils/CloningTest.cpp b/llvm/unittests/Transforms/Utils/CloningTest.cpp index 1d0d56a..96e863b 100644 --- a/llvm/unittests/Transforms/Utils/CloningTest.cpp +++ b/llvm/unittests/Transforms/Utils/CloningTest.cpp @@ -475,7 +475,7 @@ protected: // Function DI auto *File = DBuilder.createFile("filename.c", "/file/dir/"); - DITypeRefArray ParamTypes = DBuilder.getOrCreateTypeArray(std::nullopt); + DITypeRefArray ParamTypes = DBuilder.getOrCreateTypeArray({}); DISubroutineType *FuncType = DBuilder.createSubroutineType(ParamTypes); auto *CU = DBuilder.createCompileUnit(dwarf::DW_LANG_C99, @@ -965,7 +965,7 @@ protected: // Create debug info auto *File = DBuilder.createFile("filename.c", "/file/dir/"); - DITypeRefArray ParamTypes = DBuilder.getOrCreateTypeArray(std::nullopt); + DITypeRefArray ParamTypes = DBuilder.getOrCreateTypeArray({}); DISubroutineType *DFuncType = DBuilder.createSubroutineType(ParamTypes); auto *CU = DBuilder.createCompileUnit(dwarf::DW_LANG_C99, DBuilder.createFile("filename.c", |