[all-commits] [llvm/llvm-project] 96e093: [flang][Evaluate] Fix AsGenericExpr for Relational...
Krzysztof Parzyszek via All-commits
all-commits at lists.llvm.org
Tue May 6 09:59:46 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 96e09302f9e6617b68b7dca17a5a0c866e147d4d
https://github.com/llvm/llvm-project/commit/96e09302f9e6617b68b7dca17a5a0c866e147d4d
Author: Krzysztof Parzyszek <Krzysztof.Parzyszek at amd.com>
Date: 2025-05-06 (Tue, 06 May 2025)
Changed paths:
M flang/include/flang/Evaluate/tools.h
Log Message:
-----------
[flang][Evaluate] Fix AsGenericExpr for Relational (#138455)
The variant in Expr<Type<TypeCategory::Logical, KIND>> only contains
Relational<SomeType>, not other, more specific Relational<T> types.
When calling AsGenericExpr for a value of type Relational<T>, the AsExpr
function will attempt to create Expr<> directly for Relational<T>, which
won't work for the above reason.
Implement an overload of AsExpr for Relational<T>, which will wrap the
Relational<T> in Relational<SomeType> before creating Expr<>.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list