summaryrefslogtreecommitdiff
path: root/src/mir/from_hir.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mir/from_hir.cpp')
-rw-r--r--src/mir/from_hir.cpp4
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);