File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -404,7 +404,7 @@ CIRGenTypes::arrangeFunctionDeclaration(const FunctionDecl *fd) {
404
404
funcTy.getAs <FunctionNoProtoType>()) {
405
405
assert (!cir::MissingFeatures::opCallCIRGenFuncInfoExtParamInfo ());
406
406
assert (!cir::MissingFeatures::opCallFnInfoOpts ());
407
- return arrangeCIRFunctionInfo (noProto->getReturnType (), std::nullopt ,
407
+ return arrangeCIRFunctionInfo (noProto->getReturnType (), {} ,
408
408
RequiredArgs::All);
409
409
}
410
410
Original file line number Diff line number Diff line change @@ -894,9 +894,8 @@ class CIRGenFunction : public CIRGenTypeCache {
894
894
895
895
// Build CIR for a statement. useCurrentScope should be true if no
896
896
// new scopes need be created when finding a compound statement.
897
- mlir::LogicalResult
898
- emitStmt (const clang::Stmt *s, bool useCurrentScope,
899
- llvm::ArrayRef<const Attr *> attrs = std::nullopt);
897
+ mlir::LogicalResult emitStmt (const clang::Stmt *s, bool useCurrentScope,
898
+ llvm::ArrayRef<const Attr *> attrs = {});
900
899
901
900
mlir::LogicalResult emitSimpleStmt (const clang::Stmt *s,
902
901
bool useCurrentScope);
You can’t perform that action at this time.
0 commit comments