Emit intrinsic lazily

Fixes #11926