summaryrefslogtreecommitdiff
path: root/src/wasm.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/wasm.h')
-rw-r--r--src/wasm.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/wasm.h b/src/wasm.h
index 3b736fcbc..b8e3d6704 100644
--- a/src/wasm.h
+++ b/src/wasm.h
@@ -1457,6 +1457,11 @@ public:
Expression* rtt = nullptr;
HeapType intendedType;
+ // Support the unsafe `ref.cast_nop_static` to enable precise cast overhead
+ // measurements.
+ enum Safety { Safe, Unsafe };
+ Safety safety;
+
void finalize();
// Returns the type we intend to cast to.