[clang] [CIR][NFC] Fix incorrect function names in assert messages (PR #174334)
via cfe-commits
cfe-commits at lists.llvm.org
Sun Jan 4 06:56:49 PST 2026
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-clang
@llvm/pr-subscribers-clangir
Author: Andrzej WarzyĆski (banach-space)
<details>
<summary>Changes</summary>
---
Full diff: https://github.com/llvm/llvm-project/pull/174334.diff
1 Files Affected:
- (modified) clang/lib/CIR/CodeGen/CIRGenFunction.h (+2-2)
``````````diff
diff --git a/clang/lib/CIR/CodeGen/CIRGenFunction.h b/clang/lib/CIR/CodeGen/CIRGenFunction.h
index c46cd86e66dc0..25d95e3005849 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();
}
@@ -219,7 +219,7 @@ class CIRGenFunction : public CIRGenTypeCache {
static int64_t getZExtIntValueFromConstOp(mlir::Value val) {
auto constOp = val.getDefiningOp<cir::ConstantOp>();
assert(constOp &&
- "getZeroExtendedIntValueFromConstOp call with non ConstantOp");
+ "getZExtIntValueFromConstOp call with non ConstantOp");
return constOp.getIntValue().getZExtValue();
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/174334
More information about the cfe-commits
mailing list