[all-commits] [llvm/llvm-project] 7ada6f: [AsmParser] Correctly handle .ifeqs nested in othe...

Oliver Stannard via All-commits all-commits at lists.llvm.org
Mon Mar 24 07:03:41 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 7ada6f111f133ef2a749c7f395cf337acdaf0f31
      https://github.com/llvm/llvm-project/commit/7ada6f111f133ef2a749c7f395cf337acdaf0f31
  Author: Oliver Stannard <oliver.stannard at arm.com>
  Date:   2025-03-24 (Mon, 24 Mar 2025)

  Changed paths:
    M llvm/lib/MC/MCParser/AsmParser.cpp
    M llvm/test/MC/AsmParser/ifeqs.s
    M llvm/test/MC/AsmParser/ifnes.s

  Log Message:
  -----------
  [AsmParser] Correctly handle .ifeqs nested in other conditional directives (#132713)

The parser function used for the .ifeqs and .ifnes directives was
missing the check for whether we are currently in an ignored block of an
outer conditional directive, causing the block to be evaluated when it
should not, for example:

.if 0
  .ifeqs "a", "a"
    // Should not be evaluated, but is
    nop
  .endif
.endif



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