diff options
-rw-r--r-- | src/binaryen-c.h | 2 | ||||
-rw-r--r-- | test/lit/passes/cfp.wast | 6 |
2 files changed, 6 insertions, 2 deletions
diff --git a/src/binaryen-c.h b/src/binaryen-c.h index d16f46d9a..ee56afdad 100644 --- a/src/binaryen-c.h +++ b/src/binaryen-c.h @@ -1051,6 +1051,8 @@ BINARYEN_API BinaryenExpressionRef BinaryenBrOn(BinaryenModuleRef module, const char* name, BinaryenExpressionRef ref, BinaryenType castType); +// Passing in null for |operands| (and 0 for |numOperands|) implies this is +// struct.new_default. BINARYEN_API BinaryenExpressionRef BinaryenStructNew(BinaryenModuleRef module, BinaryenExpressionRef* operands, diff --git a/test/lit/passes/cfp.wast b/test/lit/passes/cfp.wast index 38e17c578..b61f2c6a6 100644 --- a/test/lit/passes/cfp.wast +++ b/test/lit/passes/cfp.wast @@ -2497,7 +2497,8 @@ (local.get $B1) ) ) - ;; The copy can't refer to a $B2, so we can optimize here. TODO + ;; The copy can't refer to a $B2, so we can optimize here. TODO (but GUFA + ;; can do this) (drop (struct.get $B2 0 (local.get $B2) @@ -2602,7 +2603,8 @@ (local.get $A) ) ) - ;; The copy can't refer to a $B1, so we can optimize here. TODO + ;; The copy can't refer to a $B1, so we can optimize here. TODO (but GUFA + ;; can do this) (drop (struct.get $B1 0 (local.get $B1) |