[clang] [clang][Interp] Integral pointers (PR #84159)

Timm Baeder via cfe-commits cfe-commits at lists.llvm.org
Thu Apr 11 00:07:12 PDT 2024


================
@@ -22,7 +22,11 @@ class FunctionPointer final {
   const Function *Func;
 
 public:
-  FunctionPointer() : Func(nullptr) {}
+  // FIXME: We might want to track the fact that the Function pointer
+  // has been created from an integer and is most likely garbage anyway.
+  FunctionPointer(int IntVal = 0, const Descriptor *Desc = nullptr)
----------------
tbaederr wrote:

Ah sorry, looks like I'm too slow :upside_down_face: 

https://github.com/llvm/llvm-project/pull/84159


More information about the cfe-commits mailing list