This commit renames the "di_void_result_type" to "di_null_type" as LLVM
does use null not exclusively for void types. An added test demonstrates
this for variadic function declarations, whose DISubroutine indicates the
start of variadic types with null.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
Thanks for the fix!
mlir/include/mlir/Dialect/LLVMIR/LLVMAttrDefs.td | ||
---|---|---|
267–268 | nit: maybe align with "DINullType" above. | |
mlir/lib/Target/LLVMIR/DebugImporter.cpp | ||
153–154 | nit: Let's maybe mention the variadic types. "A nullptr entry may appear at the beginning or the end of the subroutine types list modeling either a void result type or the type of a variadic argument." |
nit: maybe align with "DINullType" above.