[clang] [clang][NFC] Remove dead PassTypeToPlacementDelete field (PR #143448)
via cfe-commits
cfe-commits at lists.llvm.org
Mon Jun 9 14:56:50 PDT 2025
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-clang
@llvm/pr-subscribers-clang-codegen
Author: Oliver Hunt (ojhunt)
<details>
<summary>Changes</summary>
The CallDeleteDuringNew::PassTypeToPlacementDelete field became unneeded during the many refactorings of P2719 but I didn't actually remove it.
---
Full diff: https://github.com/llvm/llvm-project/pull/143448.diff
1 Files Affected:
- (modified) clang/lib/CodeGen/CGExprCXX.cpp (-2)
``````````diff
diff --git a/clang/lib/CodeGen/CGExprCXX.cpp b/clang/lib/CodeGen/CGExprCXX.cpp
index 024254b0affe4..359e30cb8f5cd 100644
--- a/clang/lib/CodeGen/CGExprCXX.cpp
+++ b/clang/lib/CodeGen/CGExprCXX.cpp
@@ -1446,8 +1446,6 @@ namespace {
unsigned NumPlacementArgs : 30;
LLVM_PREFERRED_TYPE(AlignedAllocationMode)
unsigned PassAlignmentToPlacementDelete : 1;
- LLVM_PREFERRED_TYPE(TypeAwareAllocationMode)
- unsigned PassTypeToPlacementDelete : 1;
const FunctionDecl *OperatorDelete;
RValueTy TypeIdentity;
ValueTy Ptr;
``````````
</details>
https://github.com/llvm/llvm-project/pull/143448
More information about the cfe-commits
mailing list