Skip to content

Commit

Permalink
Fix x86 32bits MLIR build (NFC)
Browse files Browse the repository at this point in the history
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)
  • Loading branch information
DimitryAndric authored and zmodem committed Feb 6, 2020
1 parent 22633f8 commit 0242096
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mlir/lib/Transforms/DialectConversion.cpp
Expand Up @@ -783,7 +783,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}));
}
}
Expand Down

0 comments on commit 0242096

Please sign in to comment.