================
@@ -1379,6 +1379,9 @@ void DwarfUnit::applySubprogramAttributes(const 
DISubprogram *SP, DIE &SPDie,
   if (!SP->getTargetFuncName().empty())
     addString(SPDie, dwarf::DW_AT_trampoline, SP->getTargetFuncName());
 
+  if (SP->isDebugTransparent())
----------------
pogo59 wrote:

```suggestion
    addString(SPDie, dwarf::DW_AT_trampoline, SP->getTargetFuncName());
  else if (SP->isDebugTransparent())
```
You don't want to emit the same attribute twice in the same record.

https://github.com/llvm/llvm-project/pull/109490
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to