[clang] 56ed748 - [CIR][NFC] Remove unnecessary call to clangCmpToCIRCmp (#184217)
via cfe-commits
cfe-commits at lists.llvm.org
Wed Mar 4 11:51:41 PST 2026
Author: Amr Hesham
Date: 2026-03-04T20:51:34+01:00
New Revision: 56ed7485b75e66ee47eae08ecc3b3cb705b2a4e9
URL: https://github.com/llvm/llvm-project/commit/56ed7485b75e66ee47eae08ecc3b3cb705b2a4e9
DIFF: https://github.com/llvm/llvm-project/commit/56ed7485b75e66ee47eae08ecc3b3cb705b2a4e9.diff
LOG: [CIR][NFC] Remove unnecessary call to clangCmpToCIRCmp (#184217)
Remove unnecessary call to clangCmpToCIRCmp and use the result from the
previous call L1165
Added:
Modified:
clang/lib/CIR/CodeGen/CIRGenExprScalar.cpp
Removed:
################################################################################
diff --git a/clang/lib/CIR/CodeGen/CIRGenExprScalar.cpp b/clang/lib/CIR/CodeGen/CIRGenExprScalar.cpp
index 37a952326e879..57e0d1470d920 100644
--- a/clang/lib/CIR/CodeGen/CIRGenExprScalar.cpp
+++ b/clang/lib/CIR/CodeGen/CIRGenExprScalar.cpp
@@ -1192,8 +1192,6 @@ class ScalarExprEmitter : public StmtVisitor<ScalarExprEmitter, mlir::Value> {
mlir::isa<cir::PointerType>(rhs.getType())) {
cgf.cgm.errorNYI(loc, "strict vtable pointer comparisons");
}
-
- cir::CmpOpKind kind = clangCmpToCIRCmp(e->getOpcode());
result = builder.createCompare(loc, kind, lhs, rhs);
}
} else {
More information about the cfe-commits
mailing list