summaryrefslogtreecommitdiff
path: root/src/jit/lir.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/jit/lir.cpp')
-rw-r--r--src/jit/lir.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/jit/lir.cpp b/src/jit/lir.cpp
index a0a265d5ae..5a05e23c8e 100644
--- a/src/jit/lir.cpp
+++ b/src/jit/lir.cpp
@@ -1581,6 +1581,11 @@ bool LIR::Range::CheckLIR(Compiler* compiler, bool checkUnusedValues) const
// Verify that the node is allowed in LIR.
assert(node->IsLIR());
+ // Some nodes should never be marked unused, as they must be contained in the backend.
+ // These may be marked as unused during dead code elimination traversal, but they *must* be subsequently
+ // removed.
+ assert(!node->IsUnusedValue() || !node->OperIs(GT_FIELD_LIST, GT_LIST, GT_INIT_VAL));
+
// Verify that the REVERSE_OPS flag is not set. NOTE: if we ever decide to reuse the bit assigned to
// GTF_REVERSE_OPS for an LIR-only flag we will need to move this check to the points at which we
// insert nodes into an LIR range.