In (( x = y )), logic to not reference x also grabbed y

This commit is contained in:
Vidar Holen 2016-05-24 09:12:47 -07:00
parent 47fd16b8e8
commit 85e69f86eb
2 changed files with 2 additions and 1 deletions

View file

@ -520,7 +520,7 @@ getReferencedVariables parents t =
isDereferencing = (`elem` ["-eq", "-ne", "-lt", "-le", "-gt", "-ge"])
isArithmeticAssignment t = case getPath parents t of
this: TA_Assignment _ "=" _ _ :_ -> True
this: TA_Assignment _ "=" lhs _ :_ -> lhs == t
_ -> False
dataTypeFrom defaultType v = (case v of T_Array {} -> DataArray; _ -> defaultType) $ SourceFrom [v]