Skip to content

Commit 77618a9

Browse files
authored
Delete copy constructor/assignment; NFC (#145689)
This is an RAII object and static analysis was flagging it for not following the rule of three (or five).
1 parent 01174ff commit 77618a9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

clang/lib/CodeGen/CodeGenFunction.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,9 @@ class ApplyAtomGroup {
234234
uint64_t OriginalAtom = 0;
235235
CGDebugInfo *DI = nullptr;
236236

237+
ApplyAtomGroup(const ApplyAtomGroup &) = delete;
238+
void operator=(const ApplyAtomGroup &) = delete;
239+
237240
public:
238241
ApplyAtomGroup(CGDebugInfo *DI);
239242
~ApplyAtomGroup();

0 commit comments

Comments
 (0)