Fix assertion in LICM doFinalization()