diff options
Diffstat (limited to 'src/libsyntax')
| -rw-r--r-- | src/libsyntax/parse/common.rs | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/libsyntax/parse/common.rs b/src/libsyntax/parse/common.rs index 05e14c4654d..35afb79ce63 100644 --- a/src/libsyntax/parse/common.rs +++ b/src/libsyntax/parse/common.rs @@ -94,8 +94,11 @@ impl parser_common for parser { fn eat_keyword(word: str) -> bool { self.require_keyword(word); - alt copy self.token { - token::IDENT(sid, false) { + + // FIXME: this gratuitous use of @ is to + // workaround LLVM bug #13042 + alt @self.token { + @token::IDENT(sid, false) { if str::eq(word, self.get_str(sid)) { self.bump(); ret true; |
