mirror of
https://github.com/RPCSX/llvm.git
synced 2024-11-25 20:59:51 +00:00
llvm-mc: Fix llvm-mc -as-lex.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@108644 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
806de357a5
commit
346cc61cd2
@ -165,9 +165,9 @@ static int AsLexInput(const char *ProgName) {
|
||||
assert(MAI && "Unable to create target asm info!");
|
||||
|
||||
AsmLexer Lexer(*MAI);
|
||||
|
||||
Lexer.setBuffer(SrcMgr.getMemoryBuffer(0));
|
||||
|
||||
bool Error = false;
|
||||
|
||||
while (Lexer.Lex().isNot(AsmToken::Eof)) {
|
||||
switch (Lexer.getKind()) {
|
||||
default:
|
||||
|
Loading…
Reference in New Issue
Block a user