about summary refs log tree commit diff stats
path: root/subx
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2018-09-20 13:51:57 -0700
committerKartik Agaram <vc@akkartik.com>2018-09-20 13:51:57 -0700
commitd1464ca97d79e1ddfcb6550a8ee6736df81c0560 (patch)
tree764443c0926ad704d29d8d3f270be66a24878d9c /subx
parent87d5bdb96193be044cc95f562904fc6da60e0bf0 (diff)
downloadmu-d1464ca97d79e1ddfcb6550a8ee6736df81c0560.tar.gz
4551
Running reset() doesn't seem necessary so far for the translate sub-command,
but it's likely to expose us to weird bugs.

Immediately, it requires toggling `Dump_trace` in different places to print
traces while translating vs while running.
Diffstat (limited to 'subx')
-rw-r--r--subx/028translate.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/subx/028translate.cc b/subx/028translate.cc
index 4c2ba133..f2db1bbc 100644
--- a/subx/028translate.cc
+++ b/subx/028translate.cc
@@ -20,6 +20,7 @@
 if (is_equal(argv[1], "translate")) {
   START_TRACING_UNTIL_END_OF_SCOPE;
   assert(argc > 3);
+  reset();
   program p;
   ifstream fin(argv[2]);
   if (!fin) {