Removed copy-pasted resolve_inferred_error_set

both ir.cpp and analyze.cpp have a function resolve_inferred_error_set,
which is a nearly exact copy-paste. This commit removes the one in ir.cpp
and exposes then one in analyze.cpp. This also allows us to make
analyze_fn_body local to analyze.cpp, as it is not used anywhere in
ir.cpp after this change
1b3aaacba2Jimmi HC committed on 5/30/2018, 8:34:20 AMparent2b3af4e
3 files changedLine totals unavailable