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
This commit is contained in:
Dimitry Andric 2020-02-04 23:57:02 +00:00 committed by Mehdi Amini
parent 0c86dfb86d
commit 31fd112eb4
1 changed files with 1 additions and 1 deletions

View File

@ -812,7 +812,7 @@ void ConversionPatternRewriterImpl::notifyRegionIsBeingInlinedBefore(
Region &region, Region &parent, Region::iterator before) {
for (auto &pair : llvm::enumerate(region)) {
Block &block = pair.value();
unsigned position = pair.index();
Region::iterator::difference_type position = pair.index();
blockActions.push_back(BlockAction::getMove(&block, {&region, position}));
}
}