Skip to content

Commit d7c7c46

Browse files
authored
[CIR][NFS] Fix dead code return statement warning (#142591)
Fix the warning related to the missing return statement and multiple return statements
1 parent f8b561a commit d7c7c46

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

clang/lib/CIR/CodeGen/CIRGenExprScalar.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1858,9 +1858,6 @@ mlir::Value ScalarExprEmitter::VisitUnaryLNot(const UnaryOperator *e) {
18581858

18591859
// ZExt result to the expr type.
18601860
return maybePromoteBoolResult(boolVal, cgf.convertType(e->getType()));
1861-
1862-
cgf.cgm.errorNYI("destination type for logical-not unary operator is NYI");
1863-
return {};
18641861
}
18651862

18661863
/// Return the size or alignment of the type of argument of the sizeof

0 commit comments

Comments
 (0)