diff options
author | Thomas Lively <7121787+tlively@users.noreply.github.com> | 2020-01-07 11:16:44 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-07 11:16:44 -0800 |
commit | e8f9d207427bda2f6e22c28ff0210b294b1f70e1 (patch) | |
tree | 503b20fb06274e38af7e25e3a1a4106827c52693 /src/passes/StackIR.cpp | |
parent | f73b40c7873dbd2dd46a962f3afe5b97a7fc8b0a (diff) | |
download | binaryen-e8f9d207427bda2f6e22c28ff0210b294b1f70e1.tar.gz binaryen-e8f9d207427bda2f6e22c28ff0210b294b1f70e1.tar.bz2 binaryen-e8f9d207427bda2f6e22c28ff0210b294b1f70e1.zip |
[NFC] Enforce use of `Type::` on type names (#2434)
Diffstat (limited to 'src/passes/StackIR.cpp')
-rw-r--r-- | src/passes/StackIR.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/passes/StackIR.cpp b/src/passes/StackIR.cpp index e4aa55d68..a628468fb 100644 --- a/src/passes/StackIR.cpp +++ b/src/passes/StackIR.cpp @@ -88,7 +88,7 @@ private: // We can remove this. removeAt(i); } - } else if (inst->type == unreachable) { + } else if (inst->type == Type::unreachable) { inUnreachableCode = true; } } @@ -221,7 +221,7 @@ private: // This is an actual regular value on the value stack. values.push_back(null); } - } else if (inst->origin->is<LocalSet>() && inst->type == none) { + } else if (inst->origin->is<LocalSet>() && inst->type == Type::none) { // This set is potentially optimizable later, add to stack. values.push_back(i); } |