Skip to content

Conversation

ojhunt
Copy link
Contributor

@ojhunt ojhunt commented Jun 9, 2025

The CallDeleteDuringNew::PassTypeToPlacementDelete field became unneeded during the many refactorings of P2719 but I didn't actually remove it.

…te field

This field became unneeded during the many refactorings of P2719 but
I didn't actually remove it.
@ojhunt ojhunt requested a review from shafik June 9, 2025 21:56
@ojhunt ojhunt self-assigned this Jun 9, 2025
@llvmbot llvmbot added clang Clang issues not falling into any other category clang:codegen IR generation bugs: mangling, exceptions, etc. labels Jun 9, 2025
@llvmbot
Copy link
Member

llvmbot commented Jun 9, 2025

@llvm/pr-subscribers-clang

@llvm/pr-subscribers-clang-codegen

Author: Oliver Hunt (ojhunt)

Changes

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 --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;

Copy link
Collaborator

@shafik shafik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the fix!

@ojhunt ojhunt merged commit 487e757 into llvm:main Jun 10, 2025
10 checks passed
@ojhunt ojhunt deleted the users/ojhunt/remove-unneeded-field branch June 10, 2025 06:28
@ojhunt
Copy link
Contributor Author

ojhunt commented Jun 10, 2025

Thank you for the fix!

sorry for the delay, just completely forgot about it

tomtor pushed a commit to tomtor/llvm-project that referenced this pull request Jun 14, 2025
The CallDeleteDuringNew::PassTypeToPlacementDelete field became unneeded
during the many refactorings of P2719 but I didn't actually remove it.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
clang:codegen IR generation bugs: mangling, exceptions, etc. clang Clang issues not falling into any other category
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants