Restore diagnostic handler after CodeGenAction::ExecuteAction

Fix dangling pointer to local variable and address some typos.

Reviewed By: xur

Differential Revision: https://reviews.llvm.org/D96487

GitOrigin-RevId: e54811ff7e0bc99f337bcbb569311bb166187322
1 file changed