[all-commits] [llvm/llvm-project] 2a8935: [ELF] Add till and rewrite while (... consume("}"))

Fangrui Song via All-commits all-commits at lists.llvm.org
Fri Jul 26 17:13:59 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 2a89356d64a274f7171b45d8b7b05b6315a6f627
      https://github.com/llvm/llvm-project/commit/2a89356d64a274f7171b45d8b7b05b6315a6f627
  Author: Fangrui Song <i at maskray.me>
  Date:   2024-07-26 (Fri, 26 Jul 2024)

  Changed paths:
    M lld/ELF/ScriptLexer.cpp
    M lld/ELF/ScriptLexer.h
    M lld/ELF/ScriptParser.cpp
    M lld/test/ELF/linkerscript/phdrs.s
    M lld/test/ELF/linkerscript/sections.s

  Log Message:
  -----------
  [ELF] Add till and rewrite while (... consume("}"))

After #100493, the idiom `while (!errorCount() && !consume("}"))` could
lead to inaccurate diagnostics or dead loops. Introduce till to change
the code pattern.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list