diff options
author | Thomas Lively <tlively@google.com> | 2023-09-13 10:13:33 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-13 15:13:33 +0000 |
commit | 3ca8c21b89c207ce5d872e9cb2d410a869522d38 (patch) | |
tree | 10757c566326c6894512508a71719ed3b4c594fd /src/ir/properties.h | |
parent | bd497d3def1e2c702e29521f097be26024a8253e (diff) | |
download | binaryen-3ca8c21b89c207ce5d872e9cb2d410a869522d38.tar.gz binaryen-3ca8c21b89c207ce5d872e9cb2d410a869522d38.tar.bz2 binaryen-3ca8c21b89c207ce5d872e9cb2d410a869522d38.zip |
Replace I31New with RefI31 everywhere (#5930)
Globally replace the source string "I31New" with "RefI31" in preparation for
renaming the instruction from "i31.new" to "ref.i31", as implemented in the spec
in https://github.com/WebAssembly/gc/pull/422. This would be NFC, except that it
also changes the string in the external-facing C APIs.
A follow-up PR will make the corresponding behavioral change.
Diffstat (limited to 'src/ir/properties.h')
-rw-r--r-- | src/ir/properties.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ir/properties.h b/src/ir/properties.h index 7f247f72f..e8a17b106 100644 --- a/src/ir/properties.h +++ b/src/ir/properties.h @@ -117,7 +117,7 @@ inline Literal getLiteral(const Expression* curr) { return Literal(n->type); } else if (auto* r = curr->dynCast<RefFunc>()) { return Literal(r->func, r->type.getHeapType()); - } else if (auto* i = curr->dynCast<I31New>()) { + } else if (auto* i = curr->dynCast<RefI31>()) { if (auto* c = i->value->dynCast<Const>()) { return Literal::makeI31(c->value.geti32()); } |