@@ -27,8 +27,6 @@ const VALID_EXPR_HEADS = ObjectIdDict(
27
27
:simdloop => 0 : 0
28
28
)
29
29
30
- const ASSIGNED_FLAG = 0x02
31
-
32
30
# @enum isn't defined yet, otherwise I'd use it for this
33
31
const INVALID_EXPR_HEAD = " invalid expression head"
34
32
const INVALID_EXPR_NARGS = " invalid number of expression args"
@@ -41,7 +39,6 @@ const SLOTTYPES_MISMATCH = "length(slotnames) != length(slottypes)"
41
39
const SLOTTYPES_MISMATCH_UNINFERRED = " uninferred CodeInfo slottypes field is not `nothing`"
42
40
const SSAVALUETYPES_MISMATCH = " not all SSAValues in AST have a type in ssavaluetypes"
43
41
const SSAVALUETYPES_MISMATCH_UNINFERRED = " uninferred CodeInfo ssavaluetypes field does not equal the number of present SSAValues"
44
- const INVALID_ASSIGNMENT_SLOTFLAG = " slot has wrong assignment slotflag setting (bit flag 2 not set)"
45
42
const NON_TOP_LEVEL_METHOD = " encountered `Expr` head `:method` in non-top-level code (i.e. `nargs` > 0)"
46
43
const SIGNATURE_NARGS_MISMATCH = " method signature does not match number of method arguments"
47
44
const SLOTNAMES_NARGS_MISMATCH = " CodeInfo for method contains fewer slotnames than the number of method arguments"
@@ -76,9 +73,6 @@ function validate_code!(errors::Vector{>:InvalidCodeError}, c::CodeInfo, is_top_
76
73
push! (errors, InvalidCodeError (INVALID_LVALUE, lhs))
77
74
elseif isa (lhs, SlotNumber) && ! in (lhs. id, lhs_slotnums)
78
75
n = lhs. id
79
- if isassigned (c. slotflags, n) && ! is_flag_set (c. slotflags[n], ASSIGNED_FLAG)
80
- push! (errors, InvalidCodeError (INVALID_ASSIGNMENT_SLOTFLAG, lhs))
81
- end
82
76
push! (lhs_slotnums, n)
83
77
end
84
78
if ! is_valid_rvalue (rhs)
0 commit comments