diff options
author | Ori Bernstein <ori@eigenstate.org> | 2018-01-17 13:53:44 -0800 |
---|---|---|
committer | Ori Bernstein <ori@markovcorp.com> | 2018-01-17 13:53:44 -0800 |
commit | c7ad247d35a719539fc4df4e7a78d07e77a6f538 (patch) | |
tree | 81b9ebd0c54b366101ed98f50c4f86c71ea24f77 /6 | |
parent | b5c63138b4f40766dacc40e8ce91d44abdbb3b0e (diff) | |
download | mc-c7ad247d35a719539fc4df4e7a78d07e77a6f538.tar.gz |
Infer after generating init functions.
Pull out the usefile loading, so we can call it separately
from inference. Then shuffle the infer() call to after we
generate init().
Diffstat (limited to '6')
-rw-r--r-- | 6/main.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -274,9 +274,10 @@ main(int argc, char **argv) /* before we do anything to the parse */ if (debugopt['T']) dump(file, stdout); - infer(); + loaduses(); if (hasmain(file)) geninit(); + infer(); tagexports(0); /* after all type inference */ if (debugopt['t']) |