workaround LLVM bug #13042

This commit is contained in:
Niko Matsakis 2012-06-05 16:01:00 -07:00
parent ab8fa495d0
commit 9c1910a66d

View file

@ -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;