[PATCH] D21526: [codeview] Improved array type support (multi dimension array)
Reid Kleckner via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 21 15:49:25 PDT 2016
rnk added inline comments.
================
Comment at: lib/CodeGen/AsmPrinter/CodeViewDebug.cpp:858-862
@@ +857,7 @@
+
+ // FIXME:
+ // There is a bug in the front-end where an array of an incomplete structure
+ // declaration ends up not getting a size assigned to it. This needs to
+ // be fixed in the front-end, but in the meantime we don't want to trigger an
+ // assertion because of this.
+ if (Ty->getSizeInBits() == 0) {
----------------
Nice find! However, let's file that bug in http://llvm.org/bugs, and once we fix it, this code doesn't need to change, so I don't see why we need a comment here about it. It's correct as written, assuming the frontend does the right thing.
================
Comment at: lib/CodeGen/AsmPrinter/CodeViewDebug.cpp:881
@@ +880,3 @@
+ // FIXME: Make front-end support VLA subrange and emit LF_DIMVARLU.
+ if (Count == -1) {
+ Count = 1;
----------------
VLA stands for "variable length array", not "very large array". :)
Why do we need to change the frontend? Don't we already know that `Count == -1` implies a VLA? This will be a backend change, not a frontend change.
http://reviews.llvm.org/D21526
More information about the llvm-commits
mailing list