Commit 884226c1 authored by Thibaud Michaud's avatar Thibaud Michaud Committed by V8 LUCI CQ

Avoid bool enum to work around a clang crash

See https://github.com/llvm/llvm-project/issues/56560

R=ahaas@chromium.org

Bug: chromium:1344641
Change-Id: I1cc475e1bb678029f7418cb440c52a150eba9a8e
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3778717Reviewed-by: 's avatarAndreas Haas <ahaas@chromium.org>
Commit-Queue: Thibaud Michaud <thibaudm@chromium.org>
Cr-Commit-Position: refs/heads/main@{#81861}
parent 90c0b958
......@@ -54,7 +54,7 @@ class WasmCode;
class WasmFeatures;
class WireBytesStorage;
enum class LoadTransformationKind : uint8_t;
enum Suspend : bool;
enum Suspend : uint8_t;
} // namespace wasm
namespace compiler {
......
......@@ -83,7 +83,7 @@ class StructType;
struct WasmElemSegment;
class WasmValue;
enum class OnResume : int;
enum Suspend : bool;
enum Suspend : uint8_t;
} // namespace wasm
#endif
......
......@@ -75,7 +75,10 @@ class V8_EXPORT_PRIVATE FunctionTargetAndRef {
};
namespace wasm {
enum Suspend : bool { kSuspend = true, kNoSuspend = false };
// TODO(thibaudm): Use a bool instead when this is resolved:
// https://github.com/llvm/llvm-project/issues/56560. See also
// crbug.com/1344641.
enum Suspend : uint8_t { kSuspend = 1, kNoSuspend = 0 };
enum class OnResume : int { kContinue, kThrow };
} // namespace wasm
......
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