diff options
author | Alon Zakai <alonzakai@gmail.com> | 2011-12-28 17:45:09 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2011-12-28 17:45:09 -0800 |
commit | 5f823d379f9be60998f6112236048a1740ee0818 (patch) | |
tree | ea694ad209958894746403af0395375cc4050709 /tools/autodebugger.py | |
parent | f0d47bd575a8c7ca758718ff0e6e5763f936dd6d (diff) |
fix autodebugger bug with pointers
Diffstat (limited to 'tools/autodebugger.py')
-rw-r--r-- | tools/autodebugger.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/autodebugger.py b/tools/autodebugger.py index 3a9260ad..5d152d2c 100644 --- a/tools/autodebugger.py +++ b/tools/autodebugger.py @@ -212,7 +212,7 @@ for i in range(len(lines)): lines[i] += '\n call void @emscripten_autodebug_%s(i32 %d, %s %s)' % (m.group('type'), index, m.group('type'), m.group('var')) lines_added += 1 elif ALLOW_POINTERS and m.group('type').endswith('*') and m.group('type').count('*') == 1: - lines[i] += '\n %%ead.%d = ptrtoint %s %%%s to i32' % (index, m.group('type'), m.group('var')) + lines[i] += '\n %%ead.%d = ptrtoint %s %s to i32' % (index, m.group('type'), m.group('var')) lines[i] += '\n call void @emscripten_autodebug_i32(i32 %d, i32 %%ead.%d)' % (index, index) lines_added += 2 continue |