[llvm-bugs] [Bug 48483] New: Non optimal debug info for C99 array as parameter

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Dec 11 06:05:04 PST 2020


https://bugs.llvm.org/show_bug.cgi?id=48483

            Bug ID: 48483
           Summary: Non optimal debug info for C99 array as parameter
           Product: clang
           Version: unspecified
          Hardware: PC
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: C
          Assignee: unassignedclangbugs at nondot.org
          Reporter: pichet2000 at gmail.com
                CC: blitzrakete at gmail.com, dgregor at apple.com,
                    erik.pilkington at gmail.com, llvm-bugs at lists.llvm.org,
                    richard-llvm at metafoo.co.uk

For Example: 

void oneDArray( int length, int a[ length ])
{
   int i;
   for ( i = 0; i < length; ++i)
       printf("a[%d] : %d\n", i, a[ i ]);
}

The debug info (as seen in lldb) is that "a" is of type "int*" not an array of
size "length"

-- 
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/20201211/46e647f6/attachment.html>


More information about the llvm-bugs mailing list