aboutsummaryrefslogtreecommitdiff
path: root/src/analyzer.js
diff options
context:
space:
mode:
authoralon@honor <none@none>2010-10-01 20:58:15 -0700
committeralon@honor <none@none>2010-10-01 20:58:15 -0700
commit9a60dd64cdccc60d7a789ffa1f16536f8b106a0b (patch)
treee74085575573ccdcacc2a3b43f18c545eb265395 /src/analyzer.js
parent73a87bedee8b225ed76c8efebe1a032d0bf91ec5 (diff)
test+fix for modifying fields of global structures
Diffstat (limited to 'src/analyzer.js')
-rw-r--r--src/analyzer.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/analyzer.js b/src/analyzer.js
index 13c5c648..aa9a8031 100644
--- a/src/analyzer.js
+++ b/src/analyzer.js
@@ -682,6 +682,9 @@ function analyzer(data) {
});
// Optimizer
+ // XXX: load, store and gep now have pointer/value/data from which we copy the ident into a toplevel ident.
+ // However, we later read the non-toplevel ident in some cases, so optimizer changes can lead to bugs.
+ // Need to remove the toplevel, work entirely with the non-toplevel. Single location.
substrate.addZyme('Optimizer', {
processItem: function(item) {
var that = this;