[Mlir-commits] [mlir] [mlir] Fix uninitialized boolean issue (PR #145466)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Mon Jun 23 23:14:03 PDT 2025
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-mlir
Author: Denzel-Brian Budii (chios202)
<details>
<summary>Changes</summary>
---
Full diff: https://github.com/llvm/llvm-project/pull/145466.diff
1 Files Affected:
- (modified) mlir/lib/Query/Matcher/VariantValue.cpp (+1-1)
``````````diff
diff --git a/mlir/lib/Query/Matcher/VariantValue.cpp b/mlir/lib/Query/Matcher/VariantValue.cpp
index 7bf4774dba830..a4aed69875774 100644
--- a/mlir/lib/Query/Matcher/VariantValue.cpp
+++ b/mlir/lib/Query/Matcher/VariantValue.cpp
@@ -172,7 +172,7 @@ void VariantValue::setSigned(int64_t newValue) {
// Boolean
bool VariantValue::isBoolean() const { return type == ValueType::Boolean; }
-bool VariantValue::getBoolean() const { return value.Signed; }
+bool VariantValue::getBoolean() const { return value.Boolean; }
void VariantValue::setBoolean(bool newValue) {
type = ValueType::Boolean;
``````````
</details>
https://github.com/llvm/llvm-project/pull/145466
More information about the Mlir-commits
mailing list