Skip to content

Commit 878c70c

Browse files
author
Delaram Talaashrafi
committed
Remove extra braces
1 parent f61dd65 commit 878c70c

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

flang/lib/Lower/OpenACC.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4400,9 +4400,8 @@ getAttributeValueByDeviceType(llvm::SmallVector<mlir::Attribute> &attributes,
44004400
static std::optional<llvm::StringRef> getBindNameStringValue(
44014401
const std::optional<std::variant<mlir::SymbolRefAttr, mlir::StringAttr>>
44024402
&bindNameValue) {
4403-
if (!bindNameValue.has_value()) {
4403+
if (!bindNameValue.has_value())
44044404
return std::nullopt;
4405-
}
44064405

44074406
return std::visit(
44084407
[](const auto &attr) -> std::optional<llvm::StringRef> {

mlir/lib/Dialect/OpenACC/IR/OpenACC.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3538,13 +3538,12 @@ static void printBindName(mlir::OpAsmPrinter &p, mlir::Operation *op,
35383538
}
35393539

35403540
// Print the combined sequence
3541-
if (!allBindNames.empty()) {
3541+
if (!allBindNames.empty())
35423542
llvm::interleaveComma(llvm::zip(allBindNames, allDeviceTypes), p,
35433543
[&](const auto &pair) {
35443544
p << std::get<0>(pair);
35453545
printSingleDeviceType(p, std::get<1>(pair));
35463546
});
3547-
}
35483547
}
35493548

35503549
static ParseResult parseRoutineGangClause(OpAsmParser &parser,

0 commit comments

Comments
 (0)