Skip resolveOperands for optional operands when they are absent to avoid out-of-bounds access on the empty types vector.
SourceMgr
Move InitAll*** implementation into static library