[clang] f2e479d - [OpenMP] Fix -Wmisleading-indentation after D84192
Fangrui Song via cfe-commits
cfe-commits at lists.llvm.org
Fri Nov 6 20:09:49 PST 2020
Author: Fangrui Song
Date: 2020-11-06T20:09:43-08:00
New Revision: f2e479db92452594dfe6aff45ab7841f0a8c69a5
URL: https://github.com/llvm/llvm-project/commit/f2e479db92452594dfe6aff45ab7841f0a8c69a5
DIFF: https://github.com/llvm/llvm-project/commit/f2e479db92452594dfe6aff45ab7841f0a8c69a5.diff
LOG: [OpenMP] Fix -Wmisleading-indentation after D84192
Added:
Modified:
clang/lib/CodeGen/CGOpenMPRuntime.cpp
Removed:
################################################################################
diff --git a/clang/lib/CodeGen/CGOpenMPRuntime.cpp b/clang/lib/CodeGen/CGOpenMPRuntime.cpp
index e8c57caba631..017e8f2e3472 100644
--- a/clang/lib/CodeGen/CGOpenMPRuntime.cpp
+++ b/clang/lib/CodeGen/CGOpenMPRuntime.cpp
@@ -8568,9 +8568,10 @@ class MappableExprsHandler {
// If there is an entry in PartialStruct it means we have a struct with
// individual members mapped. Emit an extra combined entry.
- if (PartialStruct.Base.isValid())
+ if (PartialStruct.Base.isValid()) {
CurInfo.NonContigInfo.Dims.push_back(0);
emitCombinedEntry(CombinedInfo, CurInfo.Types, PartialStruct);
+ }
// We need to append the results of this capture to what we already have.
CombinedInfo.append(CurInfo);
More information about the cfe-commits
mailing list