================
@@ -26,7 +26,7 @@ void CIRDataLayout::reset(mlir::DataLayoutSpecInterface spec) 
{
     if (mlir::DataLayoutEntryInterface entry =
             spec.getSpecForIdentifier(addrSpKey))
       if (auto val = llvm::dyn_cast<mlir::IntegerAttr>(entry.getValue()))
-        programAddrSpace = val.getInt();
+        programAddrSpace = val.getUInt();
----------------
aobolensk wrote:

It is required for the CC change itself. The new test hits a case where the 
address space is stored as an unsigned IntegerAttr, and getInt() asserts on 
that.

I can potentially pre-commit this change not to interfere if needed 

https://github.com/llvm/llvm-project/pull/214246
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to