diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/mir/from_hir.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mir/from_hir.cpp b/src/mir/from_hir.cpp index 06a70d49..74d6af9c 100644 --- a/src/mir/from_hir.cpp +++ b/src/mir/from_hir.cpp @@ -1217,6 +1217,8 @@ namespace { const auto& ty_out = node.m_res_type; const auto& ty_in = node.m_value->m_res_type; + // TODO: The correct behavior is to do the cast (into a rvalue) no matter what. + // See test run-pass/issue-36936 if( ty_out == ty_in ) { return ; } |