[Mlir-commits] [mlir] [mlir][LLVM] Fix build (PR #153947)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Sat Aug 16 04:03:06 PDT 2025
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-mlir
Author: Matthias Springer (matthias-springer)
<details>
<summary>Changes</summary>
Fix build after #<!-- -->153937.
---
Full diff: https://github.com/llvm/llvm-project/pull/153947.diff
1 Files Affected:
- (modified) mlir/lib/Conversion/ControlFlowToLLVM/ControlFlowToLLVM.cpp (+3-3)
``````````diff
diff --git a/mlir/lib/Conversion/ControlFlowToLLVM/ControlFlowToLLVM.cpp b/mlir/lib/Conversion/ControlFlowToLLVM/ControlFlowToLLVM.cpp
index e1bbeb996d730..798d8b04eed76 100644
--- a/mlir/lib/Conversion/ControlFlowToLLVM/ControlFlowToLLVM.cpp
+++ b/mlir/lib/Conversion/ControlFlowToLLVM/ControlFlowToLLVM.cpp
@@ -146,7 +146,7 @@ struct BranchOpLowering : public ConvertOpToLLVMPattern<cf::BranchOp> {
SmallVector<Value> flattenedAdaptor = flattenValues(adaptor.getOperands());
FailureOr<Block *> convertedBlock =
getConvertedBlock(rewriter, getTypeConverter(), op, op.getSuccessor(),
- TypeRange(flattenedAdaptor));
+ TypeRange(ValueRange(flattenedAdaptor)));
if (failed(convertedBlock))
return failure();
DictionaryAttr attrs = op->getAttrDictionary();
@@ -178,12 +178,12 @@ struct CondBranchOpLowering : public ConvertOpToLLVMPattern<cf::CondBranchOp> {
"expected single element condition");
FailureOr<Block *> convertedTrueBlock =
getConvertedBlock(rewriter, getTypeConverter(), op, op.getTrueDest(),
- TypeRange(flattenedAdaptorTrue));
+ TypeRange(ValueRange(flattenedAdaptorTrue)));
if (failed(convertedTrueBlock))
return failure();
FailureOr<Block *> convertedFalseBlock =
getConvertedBlock(rewriter, getTypeConverter(), op, op.getFalseDest(),
- TypeRange(flattenedAdaptorFalse));
+ TypeRange(ValueRange(flattenedAdaptorFalse)));
if (failed(convertedFalseBlock))
return failure();
DictionaryAttr attrs = op->getDiscardableAttrDictionary();
``````````
</details>
https://github.com/llvm/llvm-project/pull/153947
More information about the Mlir-commits
mailing list