[PATCH] D80197: [DebugInfo] Upgrade DISubrange to support Fortran dynamic arrays
Alok Kumar Sharma via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu May 28 01:35:14 PDT 2020
alok marked 2 inline comments as done.
alok added inline comments.
================
Comment at: clang/test/CodeGen/debug-info-matrix-types.c:14
+ // CHECK: [[COLS]] = !DISubrange(count: 3, lowerBound: 0)
+ // CHECK: [[ROWS]] = !DISubrange(count: 2, lowerBound: 0)
// CHECK: [[EXPR_A]] = !DILocalVariable(name: "a", arg: 1, {{.+}} type: [[PTR_TY]])
----------------
aprantl wrote:
> alok wrote:
> > aprantl wrote:
> > > Should we just make lowerBound implicit and only print it when it is non-null?
> > Currently clang front-end is using old constructor for DISubrange which accepts lower as int, while using old constructor it passes zero (0) for lowerBound so it is explicit. Using new constructor and passing nullptr for lowerBound would make it not to be printed.
> Would you mind preparing a patch for clang to use the new constructor? Then we wouldn't need to update all these testcases.
Thanks. Patch is updated as required.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D80197/new/
https://reviews.llvm.org/D80197
More information about the llvm-commits
mailing list