diff --git a/clang/lib/Sema/TypeLocBuilder.h b/clang/lib/Sema/TypeLocBuilder.h --- a/clang/lib/Sema/TypeLocBuilder.h +++ b/clang/lib/Sema/TypeLocBuilder.h @@ -53,6 +53,9 @@ delete[] Buffer; } + TypeLocBuilder(const TypeLocBuilder &) = delete; + TypeLocBuilder &operator=(const TypeLocBuilder &) = delete; + /// Ensures that this buffer has at least as much capacity as described. void reserve(size_t Requested) { if (Requested > Capacity)