================
@@ -552,10 +558,10 @@ struct LoweringPreparePass
// For non-local variables, store 1 into the first byte of the guard
// variable before the object initialization begins so that references
// to the variable during initialization don't restart initialization.
- // OG: Builder.CreateStore(llvm::ConstantInt::get(CGM.Int8Ty, 1), ...);
- // Then: CGF.EmitCXXGlobalVarDeclInit(D, var, shouldPerformInit);
- globalOp->emitError("NYI: non-threadsafe init for non-local variables");
- return;
+ builder.createStore(
----------------
xakep8 wrote:
https://github.com/llvm/llvm-project/pull/228586/changes#diff-89d1258a8b049cc33dc705658552a0e3320e9311825e2663f1b72eed979edfbeR144
https://github.com/llvm/llvm-project/pull/228586
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits