Skip to content

Commit b5d56e5

Browse files
committed
🚨 work around LLVM@20 deprecation
Signed-off-by: burgholzer <[email protected]>
1 parent 7a87ba8 commit b5d56e5

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

mlir/lib/Dialect/MQTOpt/Transforms/MQTCoreRoundTrip.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,11 @@ struct MQTCoreRoundTrip final : impl::MQTCoreRoundTripBase<MQTCoreRoundTrip> {
3737
populateFromQuantumComputationPatterns(patterns, circuit);
3838

3939
// Apply patterns in an iterative and greedy manner.
40-
if (mlir::failed(applyPatternsGreedily(op, std::move(patterns)))) {
40+
if (mlir::failed(
41+
// This was deprecated in LLVM@20, but the alternative does not yet
42+
// exist in LLVM@19.
43+
// NOLINTNEXTLINE(clang-diagnostic-deprecated-declarations)
44+
mlir::applyPatternsAndFoldGreedily(op, std::move(patterns)))) {
4145
signalPassFailure();
4246
}
4347
}

0 commit comments

Comments
 (0)