[PATCH] D132286: [clang][Interp] Implement function calls

Timm Bäder via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sat Aug 20 02:20:55 PDT 2022


tbaeder added inline comments.


================
Comment at: clang/lib/AST/Interp/Interp.cpp:60
+  S.Current =
+      new InterpFrame(S, const_cast<Function *>(Func), S.Current, PC, {});
+
----------------
This patch adds two `const_cast`s. They aren't strictly necessary, since the `InterpFrame` doesn't need to modify the function. I have a local NFC patch to add `const` to a few places to make this work.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D132286/new/

https://reviews.llvm.org/D132286



More information about the cfe-commits mailing list