diff options
author | John Hodge <tpg@ucc.asn.au> | 2019-04-21 15:33:55 +0800 |
---|---|---|
committer | John Hodge <tpg@ucc.asn.au> | 2019-04-21 15:33:55 +0800 |
commit | 4a938cd5c9295319d02e51cd6f9a88afb9d6b19e (patch) | |
tree | 042986ba51ed550869a2342e71ad2a02cd8da593 /src/mir/from_hir.cpp | |
parent | 4f32d84dd1af27d36156e5523ad30dcfad28a093 (diff) | |
download | mrust-4a938cd5c9295319d02e51cd6f9a88afb9d6b19e.tar.gz |
MIR Lower - Fix wrong type used for validation return type
Diffstat (limited to 'src/mir/from_hir.cpp')
-rw-r--r-- | src/mir/from_hir.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mir/from_hir.cpp b/src/mir/from_hir.cpp index a20c4257..a2d0c790 100644 --- a/src/mir/from_hir.cpp +++ b/src/mir/from_hir.cpp @@ -2549,9 +2549,9 @@ namespace { } // NOTE: Can't clean up yet, as consteval isn't done - //MIR_Cleanup(resolve, path, fcn, args, ptr->m_res_type); + //MIR_Cleanup(resolve, path, fcn, args, ret_ty); //DEBUG("MIR Dump:" << ::std::endl << FMT_CB(ss, MIR_Dump_Fcn(ss, fcn, 1);)); - MIR_Validate(resolve, path, fcn, args, ptr->m_res_type); + MIR_Validate(resolve, path, fcn, args, ret_ty); if( getenv("MRUSTC_VALIDATE_FULL_EARLY") ) { MIR_Validate_Full(resolve, path, fcn, args, ptr->m_res_type); |