[clang] 2ea6c18 - [CIR][NFC] Fix incorrect function names in assert messages (#174334)
via cfe-commits
cfe-commits at lists.llvm.org
Sun Jan 4 07:34:27 PST 2026
Author: Andrzej WarzyĆski
Date: 2026-01-04T15:34:22Z
New Revision: 2ea6c186b29ad483f68e49fef59d0798e15c581d
URL: https://github.com/llvm/llvm-project/commit/2ea6c186b29ad483f68e49fef59d0798e15c581d
DIFF: https://github.com/llvm/llvm-project/commit/2ea6c186b29ad483f68e49fef59d0798e15c581d.diff
LOG: [CIR][NFC] Fix incorrect function names in assert messages (#174334)
Added:
Modified:
clang/lib/CIR/CodeGen/CIRGenFunction.h
Removed:
################################################################################
diff --git a/clang/lib/CIR/CodeGen/CIRGenFunction.h b/clang/lib/CIR/CodeGen/CIRGenFunction.h
index c46cd86e66dc0..49ebccc221950 100644
--- a/clang/lib/CIR/CodeGen/CIRGenFunction.h
+++ b/clang/lib/CIR/CodeGen/CIRGenFunction.h
@@ -210,7 +210,7 @@ class CIRGenFunction : public CIRGenTypeCache {
/// Get integer from a mlir::Value that is an int constant or a constant op.
static int64_t getSExtIntValueFromConstOp(mlir::Value val) {
auto constOp = val.getDefiningOp<cir::ConstantOp>();
- assert(constOp && "getIntValueFromConstOp call with non ConstantOp");
+ assert(constOp && "getSExtIntValueFromConstOp call with non ConstantOp");
return constOp.getIntValue().getSExtValue();
}
@@ -218,8 +218,7 @@ class CIRGenFunction : public CIRGenTypeCache {
/// constant op.
static int64_t getZExtIntValueFromConstOp(mlir::Value val) {
auto constOp = val.getDefiningOp<cir::ConstantOp>();
- assert(constOp &&
- "getZeroExtendedIntValueFromConstOp call with non ConstantOp");
+ assert(constOp && "getZExtIntValueFromConstOp call with non ConstantOp");
return constOp.getIntValue().getZExtValue();
}
More information about the cfe-commits
mailing list