[all-commits] [llvm/llvm-project] c6062d: [clang][Interp][NFC] Cleanup CheckActive()

Timm Baeder via All-commits all-commits at lists.llvm.org
Sun Aug 11 23:35:30 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c6062d38f74e600c185c30eec7afaa8d0a007424
      https://github.com/llvm/llvm-project/commit/c6062d38f74e600c185c30eec7afaa8d0a007424
  Author: Timm Bäder <tbaeder at redhat.com>
  Date:   2024-08-12 (Mon, 12 Aug 2024)

  Changed paths:
    M clang/lib/AST/Interp/Interp.cpp

  Log Message:
  -----------
  [clang][Interp][NFC] Cleanup CheckActive()

Assert that the given pointer is in a union if it's not active and use a
range-based for loop to find the active field.



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