From: Eric Schweitz Date: Thu, 21 Feb 2019 20:51:54 +0000 (-0800) Subject: [flang] address review comments from part 4 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=38e5faf4e7262072454830b34734ced92c493ad9;p=platform%2Fupstream%2Fllvm.git [flang] address review comments from part 4 Original-commit: flang-compiler/f18@64408ede56a47de39c84094655bfec08538b5744 Reviewed-on: https://github.com/flang-compiler/f18/pull/296 Tree-same-pre-rewrite: false --- diff --git a/flang/lib/IntermediateRepresentation/common.h b/flang/lib/IntermediateRepresentation/common.h index 8066c6a..1b76f86 100644 --- a/flang/lib/IntermediateRepresentation/common.h +++ b/flang/lib/IntermediateRepresentation/common.h @@ -61,6 +61,7 @@ struct Variable { common::OverMembers::type u; }; #endif + using Variable = const semantics::Symbol *; using PathVariable = const parser::Variable; using Scope = const semantics::Scope; @@ -104,4 +105,4 @@ enum RuntimeCallType { using RuntimeCallArguments = CallArguments; } -#endif +#endif // FORTRAN_INTERMEDIATEREPRESENTATION_COMMON_H_ diff --git a/flang/lib/IntermediateRepresentation/mixin.h b/flang/lib/IntermediateRepresentation/mixin.h index a970d82..f011f9c 100644 --- a/flang/lib/IntermediateRepresentation/mixin.h +++ b/flang/lib/IntermediateRepresentation/mixin.h @@ -24,7 +24,7 @@ namespace Fortran::IntermediateRepresentation { template struct SumTypeMixin {}; -template // T must be std::optional<...> +template // T must be std::variant<...> struct SumTypeMixin>> { template SumTypeMixin(A &&x) : u{std::move(x)} {} using SumTypeTrait = std::true_type; @@ -37,7 +37,7 @@ struct SumTypeMixin>> { }; template struct SumTypeCopyMixin {}; -template // T must be std::optional<...> +template // T must be std::variant<...> struct SumTypeCopyMixin>> { using CopyableSumTypeTrait = std::true_type; SumTypeCopyMixin(SumTypeCopyMixin &&) = default; @@ -111,4 +111,4 @@ template B &Unzip(B &out, A first, A last) { } -#endif +#endif // FORTRAN_INTERMEDIATEREPRESENTATION_COMMON_H_