Skip to content

Commit 2aa3515

Browse files
committed
[CIR] Format code with clang-format
1 parent 67e6ac3 commit 2aa3515

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

clang/lib/CIR/Dialect/Transforms/LoweringPrepare.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1610,10 +1610,9 @@ void LoweringPreparePass::runOnOperation() {
16101610
buildCXXGlobalInitFunc();
16111611
buildGlobalCtorDtorList();
16121612
buildGlobalAnnotationValues();
1613-
1614-
if (theModule && theModule->hasAttr("cir.global_annotations")) {
1613+
1614+
if (theModule && theModule->hasAttr("cir.global_annotations"))
16151615
theModule->removeAttr("cir.global_annotations");
1616-
}
16171616
}
16181617

16191618
std::unique_ptr<Pass> mlir::createLoweringPreparePass() {

clang/lib/CIR/Lowering/DirectToLLVM/LowerToLLVM.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2191,9 +2191,8 @@ mlir::LogicalResult CIRToLLVMFuncOpLowering::matchAndRewrite(
21912191
mlir::ConversionPatternRewriter &rewriter) const {
21922192

21932193
mlir::ModuleOp module = op->getParentOfType<mlir::ModuleOp>();
2194-
if (module->hasAttr("cir.global_annotations")) {
2194+
if (module->hasAttr("cir.global_annotations"))
21952195
op->removeAttr("annotations");
2196-
}
21972196

21982197
auto fnType = op.getFunctionType();
21992198
auto isDsoLocal = op.getDsoLocal();

0 commit comments

Comments
 (0)