<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/162747>162747</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[clang] `-gno-structor-decl-linkage-names` and `-gno-key-instructions` should not enable debug info
</td>
</tr>
<tr>
<th>Labels</th>
<td>
clang
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
rnk
</td>
</tr>
</table>
<pre>
In [this line](https://github.com/llvm/llvm-project/blob/ab897ae2e08646e7c60fb61d71df5616950beb66/clang/lib/Driver/ToolChains/Clang.cpp#L4387), Clang takes all "g group" arguments, and uses the last g group arg to set the debug info level (constructor, standalone, vtable, lines-only, etc). However, `-g[no-]key-instructions` and `-g[no]-structor-decl-linkage-names` are in g_Group, so it seems they activate this conditional, when the probably simply should not. I will attempt a straightforward patch to see if the issue goes away.
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJyUU8GOgzYQ_RpzGRE5BgwcOHQT0a7UY-_VGA_grmMj2yTK31cmWW0PlaqejOHNG968NxijWRzRwJoP1lwL3NPqwxDcV6G8fg6fDljzkVYTwRpHrLky0a0pbZFVvzAxMjEuJq27Ok3-xsRo7f37KLfg_6IpMTEq6xUTI6qub5EE8U7WktpJ8lnJs27Pem7kWfYNV6SkZGKcLLolE5lceA3mToGJ8Q_v7WVF4yIT4yVjTtO2MVH9Xlddy0TPxAWO95DwiyKgtcCEWGAJft-YEIBh2W_kUsxQdBr2SBHSSmAxJngjMwySh0jp-KZJ7QsYN3uwdKdM2k3exRT2KfmQuWJCp9F6R_l2T6js8ZTnFkvv7DPfKE1M9Cf4zT_o0HQBJnm5sObD-ZI11y96luZNbLyLTPLjN39QrLmW341LTZMtrXFfuFDp8EavgkBgHCx__vqSfYHowSSIRLdD7BNwSuaOieAwd_JOm9wPbUY_VnKH7i14hco-IZrblo_V71aD8-kEn_Aw1gKmRLctAUJMAc2yptmHBwYNG6ZpfU2RwMwHoYlxJ1h89uaBz1Ohh0r3VY8FDedWcl73NZfFOpCUnT7LSei54XzifcXnvulVg3yW89wVZhBcNGfOeyEqWctT3VUK61ZPVXVGXXNWc7qhsaecxpMPS3E0H85StHVbWFRk4xF8Id55E3kHwnDEV-1LZDW3Jqb4Q5FMsse2vCqa68sY5__Tkm8PnS__zeOfyQK5nJ1_ZK7Ygx3-99YdavOivAXfB_F3AAAA__8Rm0qe">