Skip to content

Commit 61030b2

Browse files
committed
Remove some unnecessary braces
1 parent feea6bf commit 61030b2

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

clang/lib/CodeGen/CGOpenMPRuntime.cpp

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7111,11 +7111,9 @@ class MappableExprsHandler {
71117111
if (AttachEntry.second) {
71127112
// Check if the attach pointer expression is a DeclRefExpr that
71137113
// references the captured variable
7114-
if (const auto *DRE = dyn_cast<DeclRefExpr>(AttachEntry.second)) {
7115-
if (DRE->getDecl() == VD) {
7114+
if (const auto *DRE = dyn_cast<DeclRefExpr>(AttachEntry.second))
7115+
if (DRE->getDecl() == VD)
71167116
return true;
7117-
}
7118-
}
71197117
}
71207118
}
71217119
return false;
@@ -7126,9 +7124,8 @@ class MappableExprsHandler {
71267124
OMPClauseMappableExprCommon::MappableExprComponentListRef Components)
71277125
const {
71287126
auto It = AttachPtrExprMap.find(Components);
7129-
if (It != AttachPtrExprMap.end()) {
7127+
if (It != AttachPtrExprMap.end())
71307128
return It->second;
7131-
}
71327129

71337130
return nullptr;
71347131
}

0 commit comments

Comments
 (0)