From caf0a3db20bbc03d2261b2c5a112bc0eddd3ca73 Mon Sep 17 00:00:00 2001 From: Alon Zakai Date: Thu, 6 Oct 2016 17:37:50 -0700 Subject: Require unique names in binaryen IR (#746) --- src/ast_utils.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/ast_utils.h') diff --git a/src/ast_utils.h b/src/ast_utils.h index 8124d3a79..861a09aaf 100644 --- a/src/ast_utils.h +++ b/src/ast_utils.h @@ -25,8 +25,11 @@ namespace wasm { +// Finds if there are breaks targeting a name. Note that since names are +// unique in our IR, we just need to look for the name, and do not need +// to analyze scoping. struct BreakSeeker : public PostWalker> { - Name target; // look for this one XXX looking by name may fall prey to duplicate names + Name target; Index found; WasmType valueType; -- cgit v1.2.3