mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-06 09:14:42 +01:00
Migrate away from llvm::ArrayRef(std::nullopt_t) (#5867)
The upstream LLVM has deprecated ArrayRef(std::nullopt_t). This CL migrates away from that.
This commit is contained in:
@@ -710,7 +710,7 @@ auto FileContext::BuildDISubprogram(const SemIR::Function& function,
|
||||
/*File=*/context().di_builder().createFile(loc.filename, ""),
|
||||
/*LineNo=*/loc.line_number,
|
||||
context().di_builder().createSubroutineType(
|
||||
context().di_builder().getOrCreateTypeArray(std::nullopt)),
|
||||
context().di_builder().getOrCreateTypeArray({})),
|
||||
/*ScopeLine=*/0, llvm::DINode::FlagZero,
|
||||
llvm::DISubprogram::SPFlagDefinition);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user