summaryrefslogtreecommitdiff
path: root/src/ir/localize.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/ir/localize.h')
-rw-r--r--src/ir/localize.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/ir/localize.h b/src/ir/localize.h
index 733e7bdec..c8e85822a 100644
--- a/src/ir/localize.h
+++ b/src/ir/localize.h
@@ -22,7 +22,10 @@
namespace wasm {
// Make an expression available in a local. If already in one, just
-// use that local, otherwise use a new local
+// use that local, otherwise use a new local.
+//
+// Note that if the local is reused, this assumes it is not modified in between
+// the set and the get, which the caller must ensure.
struct Localizer {
Index index;