[Mlir-commits] [mlir] [MLIR][LLVM] Add extraData field to the DIDerivedType attribute (PR #85935)

Tobias Gysi llvmlistbot at llvm.org
Wed Mar 20 07:38:42 PDT 2024


================
@@ -85,10 +85,15 @@ DIDerivedTypeAttr DebugImporter::translateImpl(llvm::DIDerivedType *node) {
   DITypeAttr baseType = translate(node->getBaseType());
   if (node->getBaseType() && !baseType)
     return nullptr;
+  DINodeAttr extraData =
+      translate(llvm::dyn_cast_or_null<llvm::DINode>(node->getExtraData()));
----------------
gysit wrote:

```suggestion
      translate(dyn_cast_if_present<llvm::DINode>(node->getExtraData()));
```
nit: I believe this is the more modern version.

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


More information about the Mlir-commits mailing list