Skip to content

Commit fa06da0

Browse files
authored
[libclc][BumpPointerAllocator] fix coverity issue: Rule Of Three (#16277)
Add copy constructor and copy assignment operator.
1 parent 9012e6d commit fa06da0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

libclc/utils/libclc-remangler/LibclcRemangler.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,8 @@ class BumpPointerAllocator {
105105
public:
106106
BumpPointerAllocator()
107107
: BlockList(new(InitialBuffer) BlockMeta{nullptr, 0}) {}
108+
BumpPointerAllocator(const BumpPointerAllocator &) = delete;
109+
BumpPointerAllocator &operator=(const BumpPointerAllocator &) = delete;
108110

109111
void *allocate(size_t N) {
110112
N = (N + 15u) & ~15u;

0 commit comments

Comments
 (0)