[Mlir-commits] [mlir] Remove an assertion on this pointer. (PR #120990)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Mon Dec 23 10:45:47 PST 2024
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-mlir-core
Author: Bixia Zheng (bixia1)
<details>
<summary>Changes</summary>
Remove an assertion on this pointer, as it triggers this error: 'this' pointer cannot be null in well-defined C++ code; pointer may be assumed to always convert to true.
---
Full diff: https://github.com/llvm/llvm-project/pull/120990.diff
1 Files Affected:
- (modified) mlir/lib/Transforms/Utils/DialectConversion.cpp (-1)
``````````diff
diff --git a/mlir/lib/Transforms/Utils/DialectConversion.cpp b/mlir/lib/Transforms/Utils/DialectConversion.cpp
index 51686646a0a2fc..255b0ba2559ee6 100644
--- a/mlir/lib/Transforms/Utils/DialectConversion.cpp
+++ b/mlir/lib/Transforms/Utils/DialectConversion.cpp
@@ -2843,7 +2843,6 @@ void TypeConverter::SignatureConversion::remapInput(unsigned origInputNo,
LogicalResult TypeConverter::convertType(Type t,
SmallVectorImpl<Type> &results) const {
- assert(this && "expected non-null type converter");
assert(t && "expected non-null type");
{
``````````
</details>
https://github.com/llvm/llvm-project/pull/120990
More information about the Mlir-commits
mailing list