drh / lcc

The lcc retargetable ANSI C compiler

Home Page:https://drh.github.io/lcc/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Non-lvalue can be assigned after simplifying the shift operation

huangguiyang opened this issue · comments

commented
(i >> 0) = j;

After the simplify at simp.c, the expression 'i >> 0' will be simplified to 'i' which is an INDIR tree, thus the assignment check will be OK.

The same problem can be found in other identity simplification.