Commit 6dca4f96 authored by Ng Zhi An's avatar Ng Zhi An Committed by Commit Bot

[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: Ie9200b317e4d2f47b9e869701149960341878d3c
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2223235Reviewed-by: 's avatarJakob Kummerow <jkummerow@chromium.org>
Commit-Queue: Zhi An Ng <zhin@chromium.org>
Cr-Commit-Position: refs/heads/master@{#68113}
parent 447ad5cc
...@@ -65,11 +65,10 @@ class V8_EXPORT_PRIVATE WasmInterpreter { ...@@ -65,11 +65,10 @@ class V8_EXPORT_PRIVATE WasmInterpreter {
// Representation of a thread in the interpreter. // Representation of a thread in the interpreter.
class V8_EXPORT_PRIVATE Thread { class V8_EXPORT_PRIVATE Thread {
public:
// Don't instante Threads; they will be allocated as ThreadImpl in the // Don't instante Threads; they will be allocated as ThreadImpl in the
// interpreter implementation. // interpreter implementation.
Thread() = delete; Thread() = delete;
public:
enum ExceptionHandlingResult { HANDLED, UNWOUND }; enum ExceptionHandlingResult { HANDLED, UNWOUND };
// Execution control. // Execution control.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment