summaryrefslogtreecommitdiff
path: root/src/hir/hir_ops.cpp
diff options
context:
space:
mode:
authorJohn Hodge <tpg@mutabah.net>2019-10-27 17:50:45 +0800
committerJohn Hodge <tpg@mutabah.net>2019-10-27 17:50:45 +0800
commitfd19c0f181ab979472298ddffb00f2991e5d25e5 (patch)
tree605cc0b03b9d2b1815fed689d6fc90c7098d3a23 /src/hir/hir_ops.cpp
parent0fb863f6fc7cd6714eeffe098a938795b6333595 (diff)
parent57925f061f1cdc25af33c676d50086df21272706 (diff)
downloadmrust-fd19c0f181ab979472298ddffb00f2991e5d25e5.tar.gz
Merge branch 'nightly-1.29' of https://github.com/thepowersgang/mrustc into nightly-1.29
Diffstat (limited to 'src/hir/hir_ops.cpp')
-rw-r--r--src/hir/hir_ops.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/hir/hir_ops.cpp b/src/hir/hir_ops.cpp
index f187bafe..3a33d5cb 100644
--- a/src/hir/hir_ops.cpp
+++ b/src/hir/hir_ops.cpp
@@ -324,10 +324,12 @@ namespace {
TODO(sp, "ErasedType - " << left);
),
(Function,
- TU_IFLET(::HIR::TypeRef::Data, right.m_data, Function, re,
+ if(/*const auto* re =*/ right.m_data.opt_Function() ) {
+ if( left == right )
+ return ::OrdEqual;
TODO(sp, "Function - " << left << " vs " << right);
- //return typelist_ord_specific(sp, le.arg_types, re.arg_types);
- )
+ //return typelist_ord_specific(sp, le.arg_types, re->arg_types);
+ }
else {
BUG(sp, "Mismatched types - " << left << " and " << right);
}