================ @@ -31,6 +32,12 @@ void initRuntime() { if (PM == nullptr) PM = new PluginManager(); + if (OffloadPolicy::isOffloadDisabled()) { ---------------- jhuber6 wrote: Move above allocating the plugin manager. https://github.com/llvm/llvm-project/pull/133470