[flang-commits] [flang] [flang][debug] Support IndexType. (PR #113921)

Abid Qadeer via flang-commits flang-commits at lists.llvm.org
Mon Oct 28 11:40:18 PDT 2024


================
@@ -583,6 +583,9 @@ DebugTypeGenerator::convertType(mlir::Type Ty, mlir::LLVM::DIFileAttr fileAttr,
     return convertVectorType(vecTy, fileAttr, scope, declOp);
   } else if (mlir::isa<mlir::NoneType>(Ty)) {
     return mlir::LLVM::DINullTypeAttr::get(context);
+  } else if (mlir::isa<mlir::IndexType>(Ty)) {
+    return genBasicType(context, mlir::StringAttr::get(context, "integer"), 64,
----------------
abidh wrote:

Thanks for the pointer. I have updated the PR to use it instead of a hardcoded 64.

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


More information about the flang-commits mailing list