================ @@ -1520,7 +1533,7 @@ static void EnterNewDeleteCleanup(CodeGenFunction &CGF, llvm::Value *AllocSize, CharUnits AllocAlign, const CallArgList &NewArgs) { - unsigned NumNonPlacementArgs = E->passAlignment() ? 2 : 1; + unsigned NumNonPlacementArgs = E->getNumImplicitArgs(); ---------------- cor3ntin wrote:
Nah ( they are implicitly static), but adding assertions would not hurt https://github.com/llvm/llvm-project/pull/113510 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits