[clang] [clang] Ensure pointers passed to runtime support functions are correctly signed (PR #98276)

Anton Korobeynikov via cfe-commits cfe-commits at lists.llvm.org
Tue Jul 16 12:21:43 PDT 2024


================
@@ -333,7 +338,8 @@ void CodeGenFunction::registerGlobalDtorWithLLVM(const VarDecl &VD,
                                                  llvm::FunctionCallee Dtor,
                                                  llvm::Constant *Addr) {
   // Create a function which calls the destructor.
-  llvm::Function *dtorStub = createAtExitStub(VD, Dtor, Addr);
+  llvm::Function *dtorStub =
----------------
asl wrote:

I think it's ok as it is for now. When / if we will really need better abstraction in multiple places we can go via `MaybeSigned<T>` or something like this.

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


More information about the cfe-commits mailing list