diff options
author | John Hodge <tpg@mutabah.net> | 2019-11-24 21:37:58 +0800 |
---|---|---|
committer | John Hodge <tpg@mutabah.net> | 2019-11-24 21:37:58 +0800 |
commit | 916bfed2c597446c79831aaf29c83dd1e893e853 (patch) | |
tree | 3988723fd87aa525564f0f11c4a36035c258f62d /tools/mir_opt_test/main.cpp | |
parent | d600b873364d9a799b67ccd6054f4aa69ef3d1c0 (diff) | |
download | mrust-916bfed2c597446c79831aaf29c83dd1e893e853.tar.gz |
mir_opt_test - More basic test cases
Diffstat (limited to 'tools/mir_opt_test/main.cpp')
-rw-r--r-- | tools/mir_opt_test/main.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/mir_opt_test/main.cpp b/tools/mir_opt_test/main.cpp index daa6afe5..31a04778 100644 --- a/tools/mir_opt_test/main.cpp +++ b/tools/mir_opt_test/main.cpp @@ -132,7 +132,9 @@ int main(int argc, char* argv[]) MIR_Optimise(resolve, test.input_function, *cloned_mir, in_fcn.m_args, in_fcn.m_return); - if( !compare_mir(exp_mir, *cloned_mir, test.input_function) ) + auto p = test.input_function; + p.m_crate_name = RcString(f.m_filename); + if( !compare_mir(exp_mir, *cloned_mir, p) ) { MIR_Dump_Fcn(std::cout, *cloned_mir); } |