Skip to content

Commit 111efdb

Browse files
committed
Address code review comments
1 parent 316b23e commit 111efdb

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

clang/lib/CIR/Dialect/IR/CIRDialect.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2067,9 +2067,8 @@ LogicalResult cir::ComplexRealOp::verify() {
20672067

20682068
OpFoldResult cir::ComplexRealOp::fold(FoldAdaptor adaptor) {
20692069
if (auto complexCreateOp = dyn_cast_or_null<cir::ComplexCreateOp>(
2070-
getOperand().getDefiningOp())) {
2070+
getOperand().getDefiningOp()))
20712071
return complexCreateOp.getOperand(0);
2072-
}
20732072

20742073
auto complex =
20752074
mlir::cast_if_present<cir::ConstComplexAttr>(adaptor.getOperand());

clang/test/CIR/Transforms/complex-real-fold.cir

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: cir-opt %s -cir-canonicalize -o - -split-input-file | FileCheck %s
1+
// RUN: cir-opt %s -cir-canonicalize -o - -split-input-file | FileCheck %s
22

33
!s32i = !cir.int<s, 32>
44

0 commit comments

Comments
 (0)