summaryrefslogtreecommitdiff
path: root/clang
diff options
context:
space:
mode:
Diffstat (limited to 'clang')
-rw-r--r--clang/lib/CodeGen/CGStmtOpenMP.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/lib/CodeGen/CGStmtOpenMP.cpp b/clang/lib/CodeGen/CGStmtOpenMP.cpp
index efc06a276267..c33867da7ed5 100644
--- a/clang/lib/CodeGen/CGStmtOpenMP.cpp
+++ b/clang/lib/CodeGen/CGStmtOpenMP.cpp
@@ -1950,9 +1950,9 @@ public:
Scope = new OMPLoopScope(CGF, *Dir);
CGSI = new CodeGenFunction::CGCapturedStmtInfo(CR_OpenMP);
CapInfoRAII = new CodeGenFunction::CGCapturedStmtRAII(CGF, CGSI);
- }
- if (const auto *Dir =
- dyn_cast<OMPCanonicalLoopSequenceTransformationDirective>(S)) {
+ } else if (const auto *Dir =
+ dyn_cast<OMPCanonicalLoopSequenceTransformationDirective>(
+ S)) {
// For simplicity we reuse the loop scope similarly to what we do with
// OMPCanonicalLoopNestTransformationDirective do by being a subclass
// of OMPLoopBasedDirective.