llvm/test/MC/AsmParser/pr28921.s
Nirav Dave 3e3a0a0307 Prevent out of order HashDirective lexing in AsmLexer.
Retrying after buildbot reset.

To lex hash directives we peek ahead to find component tokens, create a
unified token, and unlex the peeked tokens so the parser does not need
to parse the tokens then. Make sure we do not to lex another hash
directive during peek operation.

This fixes PR28921.

Reviewers: rnk, loladiro

Subscribers: llvm-commits

Differential Revision: https://reviews.llvm.org/D24839

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@283111 91177308-0d34-0410-b5e6-96231b3b80d8
2016-10-03 13:48:27 +00:00

9 lines
122 B
ArmAsm

// RUN: llvm-mc -triple i386-unknown-unknown %s
# 1 "kernel.S"
# 1 "<built-in>" 1
# 1 "kernel.S" 2
##
# 10 "kernel.S"
##