fix wrong line numbers with constant folding