Skip to content

Commit 3f4c50d

Browse files
[mlir] Fix build
Fix build after #156825.
1 parent 50f539c commit 3f4c50d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mlir/lib/IR/Remarks.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ buildFilter(const mlir::remark::RemarkCategories &cats,
284284
if (!rx.isValid(err))
285285
return std::nullopt;
286286

287-
return rx;
287+
return std::make_optional<llvm::Regex>(std::move(rx));
288288
}
289289

290290
RemarkEngine::RemarkEngine(bool printAsEmitRemarks,

0 commit comments

Comments
 (0)