================ @@ -6342,6 +6345,10 @@ OpenMPIRBuilder::createTeams(const LocationDescription &Loc, } }; + if (!Config.isTargetDevice()) { ---------------- skatrak wrote: Nit: Remove braces https://github.com/llvm/llvm-project/pull/79984