Technical notes (so I don't forget when I look at this): AssignExp::toElem - e1->op == TOKslice - this->ismemset == true There is no shortcut for calling BUILT_IN_MEMSET here, so the initialisation is handed down to IRState::doArraySet, which needlessly attempts to generate each individual initialiser.