summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Zakai <azakai@google.com>2021-09-20 14:12:22 -0700
committerGitHub <noreply@github.com>2021-09-20 14:12:22 -0700
commitfae5d8b78764556c93be5d8e2c2692596e554c4c (patch)
tree8c206301cdb2be57b9014c2899b7db6fb7403373
parent0e143ffb60b43eade8a7315e62c1f482536e3d1b (diff)
downloadbinaryen-fae5d8b78764556c93be5d8e2c2692596e554c4c.tar.gz
binaryen-fae5d8b78764556c93be5d8e2c2692596e554c4c.tar.bz2
binaryen-fae5d8b78764556c93be5d8e2c2692596e554c4c.zip
Tiny code cleanups. NFC (#4171)
Remove an unnecessary include, and fix a typo in a macro declaration (that macro is not tested as it seems nothing uses DELEGATE_END yet, but I may be soon).
-rw-r--r--src/ir/iteration.h1
-rw-r--r--src/wasm-delegations-fields.def2
2 files changed, 1 insertions, 2 deletions
diff --git a/src/ir/iteration.h b/src/ir/iteration.h
index bfebf5a16..3de6d1435 100644
--- a/src/ir/iteration.h
+++ b/src/ir/iteration.h
@@ -18,7 +18,6 @@
#define wasm_ir_iteration_h
#include "ir/properties.h"
-#include "wasm-traversal.h"
#include "wasm.h"
namespace wasm {
diff --git a/src/wasm-delegations-fields.def b/src/wasm-delegations-fields.def
index 6bbb7abaa..459f80afb 100644
--- a/src/wasm-delegations-fields.def
+++ b/src/wasm-delegations-fields.def
@@ -304,7 +304,7 @@ switch (DELEGATE_ID) {
DELEGATE_FIELD_CHILD(AtomicCmpxchg, ptr);
DELEGATE_FIELD_INT(AtomicCmpxchg, bytes);
DELEGATE_FIELD_ADDRESS(AtomicCmpxchg, offset);
- DELEGATE_END(AtomicCmpxchgId);
+ DELEGATE_END(AtomicCmpxchg);
break;
}
case Expression::Id::AtomicWaitId: {