diff options
author | John Hodge <tpg@ucc.asn.au> | 2019-02-02 17:34:02 +0800 |
---|---|---|
committer | John Hodge <tpg@ucc.asn.au> | 2019-02-02 17:34:02 +0800 |
commit | aab9f94620c7d78377ffbd3fdbcb845657c86503 (patch) | |
tree | efc85283507bbb09469afa6ca7782323dc6edba6 /src/resolve/absolute.cpp | |
parent | f614ee2ad81efe77ba78b0d056171677b09eb93a (diff) | |
download | mrust-aab9f94620c7d78377ffbd3fdbcb845657c86503.tar.gz |
HIR From AST - repr fiddling
Diffstat (limited to 'src/resolve/absolute.cpp')
-rw-r--r-- | src/resolve/absolute.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/resolve/absolute.cpp b/src/resolve/absolute.cpp index 3652fb3a..d2609e9e 100644 --- a/src/resolve/absolute.cpp +++ b/src/resolve/absolute.cpp @@ -350,7 +350,7 @@ namespace auto v = mod.m_value_items.find(name); if( v != mod.m_value_items.end() ) { const auto& b = v->second.path.m_bindings.value; - if( b.is_EnumVar() ) { + if( const auto* be = b.opt_EnumVar() ) { DEBUG("- TY: Enum variant " << v->second.path); path = ::AST::Path( v->second.path ); return true; |