Change some CGF parameters to CGMs.
Call __cxa_begin_catch with the current exception before
calling std::terminate().  rdar://11904428