Skip to content

[mlir] Fix uninitialized boolean issue #145466

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions mlir/lib/Query/Matcher/VariantValue.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -172,11 +172,11 @@ 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;
value.Signed = newValue;
value.Boolean = newValue;
}

bool VariantValue::isString() const { return type == ValueType::String; }
Expand Down
Loading