[Mlir-commits] [mlir] [LLVMIR] Migrate away from PointerUnion::{is, get} (NFC) (PR #120530)

Nikita Popov llvmlistbot at llvm.org
Thu Dec 19 08:58:19 PST 2024


================
@@ -280,7 +280,7 @@ getPointerDataLayoutEntry(DataLayoutEntryListRef params, LLVMPointerType type,
   for (DataLayoutEntryInterface entry : params) {
     if (!entry.isTypeEntry())
       continue;
-    if (cast<LLVMPointerType>(entry.getKey().get<Type>()).getAddressSpace() ==
+    if (cast<LLVMPointerType>(cast<Type>(entry.getKey())).getAddressSpace() ==
----------------
nikic wrote:

It's already marked as deprecated, so maybe it's time to drop it...

https://github.com/llvm/llvm-project/pull/120530


More information about the Mlir-commits mailing list