[clang] [CIR][NFS] Fix missing return statement warning (PR #142591)
Amr Hesham via cfe-commits
cfe-commits at lists.llvm.org
Tue Jun 3 14:53:17 PDT 2025
https://github.com/AmrDeveloper updated https://github.com/llvm/llvm-project/pull/142591
>From 0c59770ce43107be9f2c8c832bc8ccff293cecb4 Mon Sep 17 00:00:00 2001
From: AmrDeveloper <amr96 at programmer.net>
Date: Tue, 3 Jun 2025 14:09:37 +0200
Subject: [PATCH] [CIR][NFS] Fix dead code return statement warning
---
clang/lib/CIR/CodeGen/CIRGenExprScalar.cpp | 3 ---
1 file changed, 3 deletions(-)
diff --git a/clang/lib/CIR/CodeGen/CIRGenExprScalar.cpp b/clang/lib/CIR/CodeGen/CIRGenExprScalar.cpp
index 77287ec45972d..737bdd00ded64 100644
--- a/clang/lib/CIR/CodeGen/CIRGenExprScalar.cpp
+++ b/clang/lib/CIR/CodeGen/CIRGenExprScalar.cpp
@@ -1857,9 +1857,6 @@ mlir::Value ScalarExprEmitter::VisitUnaryLNot(const UnaryOperator *e) {
// ZExt result to the expr type.
return maybePromoteBoolResult(boolVal, cgf.convertType(e->getType()));
-
- cgf.cgm.errorNYI("destination type for logical-not unary operator is NYI");
- return {};
}
/// Return the size or alignment of the type of argument of the sizeof
More information about the cfe-commits
mailing list