================ @@ -24,6 +24,10 @@ namespace Fortran::lower { +struct LoweredResult { + std::variant<fir::ExtendedValue, hlfir::EntityWithAttributes> result; +}; ---------------- tblah wrote:
nit: Could this be simplified to ```c++ using LoweredResult = std::variant<fir::ExtendedValue, hlfir::EntityWithAttributes> result; ``` This way callers wouldn't have to add a `.result`. https://github.com/llvm/llvm-project/pull/118070 _______________________________________________ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits