[PATCH] D127134: [llvm] Add DW_CC_nocall to function debug metadata when either return values or arguments are removed
David Blaikie via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 7 10:57:19 PDT 2022
dblaikie added inline comments.
================
Comment at: llvm/lib/Transforms/IPO/DeadArgumentElimination.cpp:1093
+ // Change the CallingConvention to DW_CC_nocall
+ NF->getSubprogram()->getType()->setCC(llvm::dwarf::DW_CC_nocall);
+
----------------
What happens if there are two subprograms using the same type? Do they both end up getting their CC changed? Maybe this code needs to get the type, duplicate it, then set it?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D127134/new/
https://reviews.llvm.org/D127134
More information about the llvm-commits
mailing list