Author: Shafik Yaghmour Date: 2025-12-18T08:34:41-08:00 New Revision: 0ce00ab8ea38ceec56bb6ea82bd454797dddb849
URL: https://github.com/llvm/llvm-project/commit/0ce00ab8ea38ceec56bb6ea82bd454797dddb849 DIFF: https://github.com/llvm/llvm-project/commit/0ce00ab8ea38ceec56bb6ea82bd454797dddb849.diff LOG: [NFC][CodeGen][Clang] Apply Rule of Three to DisableDebugLocationUpdates (#172770) Static analysis flagged that DisableDebugLocationUpdates has a user defined destructor but not copy ctor and copy assignment as per rule of three. We can define them as deleted if they are not needed. Added: Modified: clang/lib/CodeGen/CGCall.h Removed: ################################################################################ diff --git a/clang/lib/CodeGen/CGCall.h b/clang/lib/CodeGen/CGCall.h index 1ef8a3f114573..4a86d58895dd9 100644 --- a/clang/lib/CodeGen/CGCall.h +++ b/clang/lib/CodeGen/CGCall.h @@ -457,6 +457,9 @@ struct DisableDebugLocationUpdates { CodeGenFunction &CGF; DisableDebugLocationUpdates(CodeGenFunction &CGF); ~DisableDebugLocationUpdates(); + DisableDebugLocationUpdates(const DisableDebugLocationUpdates &) = delete; + DisableDebugLocationUpdates & + operator=(const DisableDebugLocationUpdates &) = delete; }; } // end namespace CodeGen _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
