diff options
Diffstat (limited to 'src/wasm/wasm-validator.cpp')
-rw-r--r-- | src/wasm/wasm-validator.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/wasm/wasm-validator.cpp b/src/wasm/wasm-validator.cpp index a057f34b9..c7423ad6d 100644 --- a/src/wasm/wasm-validator.cpp +++ b/src/wasm/wasm-validator.cpp @@ -2261,6 +2261,9 @@ void FunctionValidator::visitRttSub(RttSub* curr) { curr, "rtt.canon has a depth of 1 over the parent"); } + shouldBeTrue(HeapType::isSubType(rtt.heapType, parentRtt.heapType), + curr, + "rtt.sub parent must be a supertype"); } } |