[all-commits] [llvm/llvm-project] f8685a: [NFC][ELF] Wrap invokeELFT in do { } while (0) so ...

Jessica Clarke via All-commits all-commits at lists.llvm.org
Sat Jul 26 16:21:16 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: f8685a8533dd90d31ead8c631337a798012533e0
      https://github.com/llvm/llvm-project/commit/f8685a8533dd90d31ead8c631337a798012533e0
  Author: Jessica Clarke <jrtc27 at jrtc27.com>
  Date:   2025-07-27 (Sun, 27 Jul 2025)

  Changed paths:
    M lld/ELF/Target.h

  Log Message:
  -----------
  [NFC][ELF] Wrap invokeELFT in do { } while (0) so it behaves as a function (#150119)

The current implementation is dangerous if used in contexts that need a
single statement, since invokeELFT(...); is in fact two statements, a
switch statement and an empty statement.



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