[llvm] [Offload] Check for initialization (PR #144370)

Ross Brunton via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 16 08:29:33 PDT 2025


================
@@ -27,6 +27,7 @@ struct OffloadConfig {
   bool ValidationEnabled = true;
 };
 
+bool &offloadInited();
----------------
RossBrunton wrote:

I agree. I was thinking that this would end up being a field inside that struct but a null check makes more sense. I'll work on that tomorrow and rebase this on top of it.

https://github.com/llvm/llvm-project/pull/144370


More information about the llvm-commits mailing list