[clang-tidy] Make deleted constructor public
Making them private was a way to hide the constructor, we can explicitly delete them, which give a better compilation error message as well. Also see: https://stackoverflow.com/q/55205874 Bug: v8:10488 Change-Id: I624efdb03edb4d1d07f95e756f2c87baba4b3ffe Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2223236 Reviewed-by: Clemens Backes <clemensb@chromium.org> Commit-Queue: Zhi An Ng <zhin@chromium.org> Cr-Commit-Position: refs/heads/master@{#68121}
This commit is contained in:
parent
cebbf6103d
commit
1b62ffa864
@ -140,6 +140,8 @@ class LiftoffAssembler : public TurboAssembler {
|
||||
CacheState() = default;
|
||||
CacheState(CacheState&&) V8_NOEXCEPT = default;
|
||||
CacheState& operator=(CacheState&&) V8_NOEXCEPT = default;
|
||||
// Disallow copy construction.
|
||||
CacheState(const CacheState&) = delete;
|
||||
|
||||
base::SmallVector<VarState, 8> stack_state;
|
||||
LiftoffRegList used_registers;
|
||||
@ -277,8 +279,6 @@ class LiftoffAssembler : public TurboAssembler {
|
||||
private:
|
||||
// Make the copy assignment operator private (to be used from {Split()}).
|
||||
CacheState& operator=(const CacheState&) V8_NOEXCEPT = default;
|
||||
// Disallow copy construction.
|
||||
CacheState(const CacheState&) = delete;
|
||||
};
|
||||
|
||||
explicit LiftoffAssembler(std::unique_ptr<AssemblerBuffer>);
|
||||
|
Loading…
Reference in New Issue
Block a user