[Mlir-commits] [mlir] [LLVMIR] Migrate away from PointerUnion::{is,	get} (NFC) (PR #120530)
    Nikita Popov 
    llvmlistbot at llvm.org
       
    Thu Dec 19 00:25:21 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:
Pre-existing issue, but the mix of llvm::cast and unqualified cast in this file is weird...
https://github.com/llvm/llvm-project/pull/120530
    
    
More information about the Mlir-commits
mailing list