================
@@ -357,10 +357,10 @@ void CIRGenModule::emitCXXSpecialVarDeclInit(const 
VarDecl *varDecl,
   scope.setAsGlobalInit();
   builder.setInsertionPointToStart(block);
   mlir::Value getGlobal = builder.createGetGlobal(addr, varDecl->getTLSKind());
-  // If we're initializing a static local with a guard variable, set the flag
-  // that indicates that.
+  // If we're initializing a guarded variable, set the flag that indicates
+  // that.
   getGlobal.getDefiningOp<cir::GetGlobalOp>().setStaticLocal(
-      addr.getStaticLocalGuard().has_value());
+      addr.getDynamicInitGuard().has_value());
----------------
xakep8 wrote:

Same as above

https://github.com/llvm/llvm-project/pull/228586
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to