https://llvm.org/bugs/show_bug.cgi?id=29086
Bug ID: 29086 Summary: Clang didn't emit the right debug information for vla a[3][m] Product: clang Version: trunk Hardware: PC OS: Windows NT Status: NEW Severity: normal Priority: P Component: Frontend Assignee: unassignedclangb...@nondot.org Reporter: qsh...@cn.ibm.com CC: llvm-bugs@lists.llvm.org Classification: Unclassified > cat a.C int m; int main() { int a[3][m]; return a[0][0]; } > clang++ a.C -g -S -emit-llvm > cat a.ll call void @llvm.dbg.declare(metadata i32* %7, metadata !14, metadata !18), !dbg !19 !14 = !DILocalVariable(name: "a", scope: !9, file: !1, line: 4, type: !15) !15 = !DICompositeType(tag: DW_TAG_array_type, baseType: !5, align: 32, elements: !16) !16 = !{!17, !17} !17 = !DISubrange(count: -1) > clang -v clang version 4.0.0 (trunk) Note that, clang emit both two subrange as "-1" which is not right. It should be "3" and "-1". -- You are receiving this mail because: You are on the CC list for the bug.
_______________________________________________ llvm-bugs mailing list llvm-bugs@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs