Skip to content

Commit b99d471

Browse files
committed
[CIR][NFC] Fix few unused vars and tablegen format
1 parent 07a6f80 commit b99d471

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

clang/include/clang/CIR/Dialect/IR/CIROps.td

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3334,8 +3334,8 @@ def CatchParamOp : CIR_Op<"catch_param"> {
33343334
}];
33353335

33363336
let extraClassDeclaration = [{
3337-
bool isBegin() { return getKind() == mlir::cir::CatchParamKind::begin; }
3338-
bool isEnd() { return getKind() == mlir::cir::CatchParamKind::end; }
3337+
bool isBegin() { return getKind() == mlir::cir::CatchParamKind::begin; }
3338+
bool isEnd() { return getKind() == mlir::cir::CatchParamKind::end; }
33393339
}];
33403340

33413341
let hasVerifier = 1;

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3602,7 +3602,6 @@ class CIRCatchParamOpLowering
36023602
op->getParentOfType<mlir::LLVM::LLVMFuncOp>());
36033603
auto catchFn = rewriter.create<mlir::LLVM::LLVMFuncOp>(
36043604
op.getLoc(), cxaBeginCatch, catchFnTy);
3605-
sourceSymbol = catchFn;
36063605
}
36073606
rewriter.replaceOpWithNewOp<mlir::LLVM::CallOp>(
36083607
op, mlir::TypeRange{llvmPtrTy}, cxaBeginCatch,
@@ -3622,7 +3621,6 @@ class CIRCatchParamOpLowering
36223621
op->getParentOfType<mlir::LLVM::LLVMFuncOp>());
36233622
auto catchFn = rewriter.create<mlir::LLVM::LLVMFuncOp>(
36243623
op.getLoc(), cxaEndCatch, catchFnTy);
3625-
sourceSymbol = catchFn;
36263624
}
36273625
rewriter.create<mlir::LLVM::CallOp>(op.getLoc(), mlir::TypeRange{},
36283626
cxaEndCatch, mlir::ValueRange{});

0 commit comments

Comments
 (0)