[Mlir-commits] [mlir] [mlir][IR] Fix build error with gcc-7 (PR #158305)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Fri Sep 12 07:50:10 PDT 2025
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-mlir-core
Author: Matthias Springer (matthias-springer)
<details>
<summary>Changes</summary>
Fix build after #<!-- -->156825.
---
Full diff: https://github.com/llvm/llvm-project/pull/158305.diff
1 Files Affected:
- (modified) mlir/lib/IR/Remarks.cpp (+1-1)
``````````diff
diff --git a/mlir/lib/IR/Remarks.cpp b/mlir/lib/IR/Remarks.cpp
index 29088bd360e23..a55f61aff77bb 100644
--- a/mlir/lib/IR/Remarks.cpp
+++ b/mlir/lib/IR/Remarks.cpp
@@ -284,7 +284,7 @@ buildFilter(const mlir::remark::RemarkCategories &cats,
if (!rx.isValid(err))
return std::nullopt;
- return rx;
+ return std::make_optional<llvm::Regex>(std::move(rx));
}
RemarkEngine::RemarkEngine(bool printAsEmitRemarks,
``````````
</details>
https://github.com/llvm/llvm-project/pull/158305
More information about the Mlir-commits
mailing list