[clang] Fix for codegen Crash in Clang when using locator omp_all_memory with depobj construct (PR #114221)
via cfe-commits
cfe-commits at lists.llvm.org
Wed Oct 30 05:47:40 PDT 2024
github-actions[bot] wrote:
<!--LLVM CODE FORMAT COMMENT: {clang-format}-->
:warning: C/C++ code formatter, clang-format found issues in your code. :warning:
<details>
<summary>
You can test this locally with the following command:
</summary>
``````````bash
git-clang-format --diff 03948882d3bac33cf71a47df1c7ee0f87aad9fc2 4e6d8c1edb73fe08659519d8798cab162875ebc0 --extensions cpp -- clang/lib/CodeGen/CGStmtOpenMP.cpp clang/test/OpenMP/depobj_codegen.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/clang/lib/CodeGen/CGStmtOpenMP.cpp b/clang/lib/CodeGen/CGStmtOpenMP.cpp
index 5125044b2a..390516fea3 100644
--- a/clang/lib/CodeGen/CGStmtOpenMP.cpp
+++ b/clang/lib/CodeGen/CGStmtOpenMP.cpp
@@ -5560,9 +5560,9 @@ void CodeGenFunction::EmitOMPDepobjDirective(const OMPDepobjDirective &S) {
OMPTaskDataTy Data;
buildDependences(S, Data);
for (auto &Dep : Data.Dependences) {
- Address DepAddr = CGM.getOpenMPRuntime().emitDepobjDependClause(
- *this, Dep, DC->getBeginLoc());
- EmitStoreOfScalar(DepAddr.emitRawPointer(*this), DOLVal);
+ Address DepAddr = CGM.getOpenMPRuntime().emitDepobjDependClause(
+ *this, Dep, DC->getBeginLoc());
+ EmitStoreOfScalar(DepAddr.emitRawPointer(*this), DOLVal);
}
return;
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/114221
More information about the cfe-commits
mailing list