================
@@ -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)
----------------
RKSimon wrote:

@tbaederr  This is causing a lot of MSVC warnings - `int IntVal` -> `intptr_t 
IntVal`?

`warning C4312: 'reinterpret_cast': conversion from 'int' to 'const 
clang::interp::Function *' of greater size`

https://github.com/llvm/llvm-project/pull/84159
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to