[llvm-bugs] [Bug 29086] New: Clang didn't emit the right debug information for vla a[3][m]
via llvm-bugs
llvm-bugs at lists.llvm.org
Mon Aug 22 00:21:54 PDT 2016
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: unassignedclangbugs at nondot.org
Reporter: qshanz at cn.ibm.com
CC: llvm-bugs at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20160822/c431f1cd/attachment.html>
More information about the llvm-bugs
mailing list