Skip to content

Commit b2521ae

Browse files
[mlir][IR] Fix build error with gcc-7 (#158305)
Fix build after #156825.
1 parent b0cb4e1 commit b2521ae

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)