[LLVMbugs] [Bug 14763] New: debug info for non-trivial value parameters represent references instead

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Dec 31 12:21:39 PST 2012


http://llvm.org/bugs/show_bug.cgi?id=14763

             Bug #: 14763
           Summary: debug info for non-trivial value parameters represent
                    references instead
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: All
            Status: NEW
          Keywords: googler
          Severity: enhancement
          Priority: P
         Component: C++
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: dblaikie at gmail.com
                CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
            Blocks: 14330
    Classification: Unclassified


struct foo {
  foo(const foo&);
  int var;
};

int func(foo f) {
  f.var++;
  return f.var;
}

"ptype func" prints "int func(foo&)" and llvm-dwarfdump backs this up, with
Clang's debug info having a DW_TAG_subprogram for "func" with a
DW_TAG_formal_parameter for "f" with a DW_AT_type referring to a
DW_TAG_reference_type instead of the DW_TAG_structure_type as GCC does.

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list