@@ -2969,6 +2969,11 @@ static LValue EmitGlobalVarDeclLValue(CodeGenFunction
&CGF,
llvm::Value *V = CGF.CGM.GetAddrOfGlobalVar(VD);
+ if (VD->hasAttr()) {
+llvm::GlobalVariable *Var = llvm::dyn_cast(V);
+Var->setInitializer(CGF.CGM.EmitNullConstant(E->getType()));
llvmbot wrote:
@llvm/pr-subscribers-clang
Author: None (ShashwathiNavada)
Changes
When a mapper is declared with an iterator variable inside the map clause, it
results in unintended behavior due to the iterator being implicitly created but
left uninitialized.
Testcase:
```
typedef struc
https://github.com/ShashwathiNavada updated
https://github.com/llvm/llvm-project/pull/141507
>From 435206a8beb2af0368757bd1cf0850db30088ca5 Mon Sep 17 00:00:00 2001
From: Shashwathi N
Date: Mon, 19 May 2025 14:29:47 -0500
Subject: [PATCH 1/3] Trying to fix undefined symbol error caused by itera
github-actions[bot] wrote:
:warning: C/C++ code formatter, clang-format found issues in your code.
:warning:
You can test this locally with the following command:
``bash
git-clang-format --diff HEAD~1 HEAD --extensions cpp --
clang/lib/CodeGen/CGExpr.cpp clang/lib/Sema/SemaOpenM
llvmbot wrote:
@llvm/pr-subscribers-clang-codegen
Author: None (ShashwathiNavada)
Changes
When a mapper is declared with an iterator variable inside the map clause, it
results in unintended behavior due to the iterator being implicitly created but
left uninitialized.
Testcase:
```
typed
https://github.com/ShashwathiNavada created
https://github.com/llvm/llvm-project/pull/141507
When a mapper is declared with an iterator variable inside the map clause, it
results in unintended behavior due to the iterator being implicitly created but
left uninitialized.
Testcase:
```
typedef