Avoid a dangling pointer dereference, PassManager::add can delete the Pass.