Both igneous and sedimentary rocks must pass through a stage of metamorphism before they can get hot enough to melt, so all igneous rocks must originate from the melting of metamorphic rocks.
(they; can get; hot enough to melt) (they; to melt; )
they they
can get to melt
hot enough to melt