<html>
<head>
<base href="https://bugs.llvm.org/">
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - [codeview] The 'this' symbol is not marked as compiler generated."
href="https://bugs.llvm.org/show_bug.cgi?id=46431">46431</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>[codeview] The 'this' symbol is not marked as compiler generated.
</td>
</tr>
<tr>
<th>Product</th>
<td>libraries
</td>
</tr>
<tr>
<th>Version</th>
<td>trunk
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>All
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>enhancement
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>DebugInfo
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>international.phantom@gmail.com
</td>
</tr>
<tr>
<th>CC</th>
<td>jdevlieghere@apple.com, keith.walker@arm.com, llvm-bugs@lists.llvm.org, paul_robinson@playstation.sony.com
</td>
</tr></table>
<p>
<div>
<pre>For the given test:
//----------------------------------------------------------
class CLASS {
public:
int member(int Param);
};
int CLASS::member(int Param) {
return Param;
}
//----------------------------------------------------------
----------------------------
CodeView generated by Clang:
----------------------------
0 | S_GPROC32_ID `CLASS::member`
type = `0x1008 (member)`, flags = none
0 | S_LOCAL `this`
type=0x1009 (CLASS*), flags = param
0 | S_LOCAL `Param`
type=0x0074 (int), flags = param
0 | S_PROC_ID_END
Both 'this' and 'Param' are marked as 'param' (LocalSymFlags::IsParameter).
The 'this' should have the (LocalSymFlags::IsCompilerGenerated) as well.
-------------------------
DWARF generated by Clang:
-------------------------
DW_TAG_class_type
DW_AT_name ("CLASS")
DW_TAG_subprogram
DW_AT_name ("member")
DW_AT_type (0x00000064 "int")
DW_AT_accessibility (DW_ACCESS_public)
DW_TAG_formal_parameter
DW_AT_type (0x0000006b "CLASS*")
DW_AT_artificial (true)
DW_TAG_formal_parameter
DW_AT_type (0x00000064 "int")
Only the 'this' parameter is marked as 'DW_AT_artificial', indicating that is
compiler generated.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>