forked from OSchip/llvm-project
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:
parent
0c86dfb86d
commit
31fd112eb4
|
@ -812,7 +812,7 @@ void ConversionPatternRewriterImpl::notifyRegionIsBeingInlinedBefore(
|
|||
Region ®ion, 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, {®ion, position}));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue