================
@@ -35,6 +35,7 @@ struct NVPTXScopes {
 
 private:
   SmallMapVector<SyncScope::ID, NVPTX::Scope, 8> Scopes{};
+  LLVMContext *CTX = nullptr;
----------------
Artem-B wrote:
`CTX` appears to be required and should be a reference.
https://github.com/llvm/llvm-project/pull/109871