[clang] [Clang] Instantiate functions from constant evaluation. (PR #205557)
Shafik Yaghmour via cfe-commits
cfe-commits at lists.llvm.org
Fri Sep 18 18:49:22 PDT 2026
================
@@ -1996,9 +1997,25 @@ bool PtrPtrCast(InterpState &S, CodePtr OpPC, bool SrcIsVoidPtr,
return true;
}
-static void compileFunction(InterpState &S, const Function *Func) {
+static void compileFunction(InterpState &S, const Function *Func,
+ CodePtr OpPC) {
+ const FunctionDecl *Fn = Func->getDecl()->getMostRecentDecl();
----------------
shafik wrote:
May be worth adding a comment.
https://github.com/llvm/llvm-project/pull/205557
More information about the cfe-commits
mailing list