[clang] [llvm] [CloneFunction][DebugInfo] Avoid cloning DILocalVariables of inlined functions (PR #75385)
Adrian Prantl via cfe-commits
cfe-commits at lists.llvm.org
Fri Dec 15 13:10:57 PST 2023
================
@@ -238,6 +238,13 @@ void llvm::CloneFunctionInto(Function *NewFunc, const Function *OldFunc,
}
}
+ // Avoid cloning local variables of subprograms that won't be cloned.
----------------
adrian-prantl wrote:
Can you add a sentence explaining why some subprograms won't be cloned? Is it because they are inlined and a copy already exists?
https://github.com/llvm/llvm-project/pull/75385
More information about the cfe-commits
mailing list