From 9c1910a66db95468608c9cc02a5012e3db7f4e09 Mon Sep 17 00:00:00 2001 From: Niko Matsakis Date: Tue, 5 Jun 2012 16:01:00 -0700 Subject: workaround LLVM bug #13042 --- src/libsyntax/parse/common.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/libsyntax/parse') 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; -- cgit 1.4.1-3-g733a5