Skip to content

Commit 2e2ac6f

Browse files
authored
[flang] Fix build warning (#89686)
A recent patch had three declared but unused variables in it, triggering a warning in some build bots. Remove them.
1 parent 6094b3b commit 2e2ac6f

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

flang/lib/Evaluate/fold-logical.cpp

-3
Original file line numberDiff line numberDiff line change
@@ -482,11 +482,9 @@ static Expr<Type<TypeCategory::Logical, KIND>> RewriteOutOfRange(
482482
CHECK(x != nullptr);
483483
if (const auto *mold{UnwrapExpr<Expr<SomeType>>(args[1])}) {
484484
DynamicType xType{x->GetType().value()};
485-
DynamicType moldType{mold->GetType().value()};
486485
std::optional<Expr<LogicalResult>> result;
487486
bool alwaysFalse{false};
488487
if (auto *iXExpr{UnwrapExpr<Expr<SomeInteger>>(*x)}) {
489-
DynamicType iXType{iXExpr->GetType().value()};
490488
int iXKind{iXExpr->GetType().value().kind()};
491489
if (auto *iMoldExpr{UnwrapExpr<Expr<SomeInteger>>(*mold)}) {
492490
// INTEGER -> INTEGER
@@ -522,7 +520,6 @@ static Expr<Type<TypeCategory::Logical, KIND>> RewriteOutOfRange(
522520
}
523521
}
524522
} else if (auto *rXExpr{UnwrapExpr<Expr<SomeReal>>(*x)}) {
525-
DynamicType rXType{rXExpr->GetType().value()};
526523
int rXKind{rXExpr->GetType().value().kind()};
527524
if (auto *iMoldExpr{UnwrapExpr<Expr<SomeInteger>>(*mold)}) {
528525
// REAL -> INTEGER

0 commit comments

Comments
 (0)