File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed
Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -1418,6 +1418,8 @@ template <int Kind> Operator OperationCode(const LogicalOperation<Kind> &op) {
14181418 return Operator::Unknown;
14191419}
14201420
1421+ Operator OperationCode (const Relational<SomeType> &op);
1422+
14211423template <typename T> Operator OperationCode (const Relational<T> &op) {
14221424 switch (op.opr ) {
14231425 case common::RelationalOperator::LT:
Original file line number Diff line number Diff line change @@ -1793,6 +1793,10 @@ std::string operation::ToString(operation::Operator op) {
17931793 llvm_unreachable (" Unhandler operator" );
17941794}
17951795
1796+ operation::Operator operation::OperationCode (const Relational<SomeType> &op) {
1797+ return common::visit ([](auto &&s) { return OperationCode (s); }, op.u );
1798+ }
1799+
17961800operation::Operator operation::OperationCode (const ProcedureDesignator &proc) {
17971801 Operator code{llvm::StringSwitch<Operator>(proc.GetName ())
17981802 .Case (" associated" , Operator::Associated)
You can’t perform that action at this time.
0 commit comments