Skip to content

Commit 0242096

Browse files
DimitryAndriczmodem
authored andcommitted
Fix x86 32bits MLIR build (NFC)
This is fixing a build error: error: non-constant-expression cannot be narrowed from type 'unsigned int' to 'Region::iterator::difference_type' (aka 'int') in initializer list Fix pr44767 (cherry picked from commit 31fd112)
1 parent 22633f8 commit 0242096

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mlir/lib/Transforms/DialectConversion.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -783,7 +783,7 @@ void ConversionPatternRewriterImpl::notifyRegionIsBeingInlinedBefore(
783783
Region &region, Region &parent, Region::iterator before) {
784784
for (auto &pair : llvm::enumerate(region)) {
785785
Block &block = pair.value();
786-
unsigned position = pair.index();
786+
Region::iterator::difference_type position = pair.index();
787787
blockActions.push_back(BlockAction::getMove(&block, {&region, position}));
788788
}
789789
}

0 commit comments

Comments
 (0)