Browse Source

don't propagate `null` constants on onlining

Aleksandr Kuzmenko 6 years ago
parent
commit
977ac29bca
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/optimization/inline.ml

+ 1 - 0
src/optimization/inline.ml

@@ -357,6 +357,7 @@ class inline_state ctx ethis params cf f p = object(self)
 			else begin
 				let vik = match e.eexpr with
 					| TLocal _ when i.i_abstract_this -> VIInline
+					| TConst TNull -> VIDoNotInline
 					| TLocal _ | TConst _ ->
 						if not i.i_write then VIInline else VIDoNotInline
 					| TFunction _ ->