summaryrefslogtreecommitdiff
path: root/src/passes/OptimizeAddedConstants.cpp
diff options
context:
space:
mode:
authorAlon Zakai <azakai@google.com>2022-11-29 15:55:21 -0800
committerGitHub <noreply@github.com>2022-11-29 15:55:21 -0800
commitfe3ad0e6319cadcbe0dfdb360421029086c300f5 (patch)
tree0f6206ee0270ae67512a65301d3730db1aaa291a /src/passes/OptimizeAddedConstants.cpp
parent0c97bb81325ae29f53de9372adad2971d6ef9509 (diff)
downloadbinaryen-fe3ad0e6319cadcbe0dfdb360421029086c300f5.tar.gz
binaryen-fe3ad0e6319cadcbe0dfdb360421029086c300f5.tar.bz2
binaryen-fe3ad0e6319cadcbe0dfdb360421029086c300f5.zip
Update comment in OptimizeAddedConstants.cpp (#5283)
Diffstat (limited to 'src/passes/OptimizeAddedConstants.cpp')
-rw-r--r--src/passes/OptimizeAddedConstants.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/passes/OptimizeAddedConstants.cpp b/src/passes/OptimizeAddedConstants.cpp
index aadff5112..1bf7c7e9e 100644
--- a/src/passes/OptimizeAddedConstants.cpp
+++ b/src/passes/OptimizeAddedConstants.cpp
@@ -189,9 +189,9 @@ private:
// y = y + 1
// load(x)
//
- // This example should not be optimized into
+ // This example should *not* be optimized into
//
- // load(x, offset=10)
+ // load(y, offset=10)
//
// If the other side is a get, we may be able to prove that we can just
// use that same local, if both it and the pointer are in SSA form. In