pet.cc: update to CompilerInstance::setInvocation taking shared_ptr