[all-commits] [llvm/llvm-project] a767ae: [RISCV] Fix incomplete asm statement parsing

Luís Marques via All-commits all-commits at lists.llvm.org
Wed Jan 19 13:56:41 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a767ae2c5ce7615c188baabd3b6a52bb880de234
      https://github.com/llvm/llvm-project/commit/a767ae2c5ce7615c188baabd3b6a52bb880de234
  Author: Luís Marques <luismarques at lowrisc.org>
  Date:   2022-01-19 (Wed, 19 Jan 2022)

  Changed paths:
    M llvm/lib/Target/RISCV/AsmParser/RISCVAsmParser.cpp
    M llvm/test/CodeGen/RISCV/large-stack.ll

  Log Message:
  -----------
  [RISCV] Fix incomplete asm statement parsing

For instructions without operands, the final `AsmToken::EndOfStatement`
wasn't being consumed. In the context of inline assembly, the resulting
empty statements would cause extraneous empty lines to be emitted. Fix
the issue by consuming the `EndOfStatement` token.

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




More information about the All-commits mailing list