We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b8780fb commit b3eba80Copy full SHA for b3eba80
mlir/lib/Conversion/LLVMCommon/TypeConverter.cpp
@@ -528,7 +528,8 @@ LLVMTypeConverter::getMemRefAddressSpace(BaseMemRefType type) const {
528
if (!(*converted)) // Conversion to default is 0.
529
return 0;
530
if (auto explicitSpace = llvm::dyn_cast_if_present<IntegerAttr>(*converted)) {
531
- if (explicitSpace.getType().isSignedInteger())
+ if (explicitSpace.getType().isIndex() ||
532
+ explicitSpace.getType().isSignlessInteger())
533
return explicitSpace.getInt();
534
}
535
return failure();
0 commit comments