[all-commits] [llvm/llvm-project] 294687: [CIR] Fix assertion order in 'Address' (#157477)

Erich Keane via All-commits all-commits at lists.llvm.org
Mon Sep 8 07:59:52 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 2946879c49d2cb17d1b53ff398edd681baf49417
      https://github.com/llvm/llvm-project/commit/2946879c49d2cb17d1b53ff398edd681baf49417
  Author: Erich Keane <ekeane at nvidia.com>
  Date:   2025-09-08 (Mon, 08 Sep 2025)

  Changed paths:
    M clang/lib/CIR/CodeGen/Address.h

  Log Message:
  -----------
  [CIR] Fix assertion order in 'Address' (#157477)

We are checking the 'type' of 'pointer' before we are checking whether
it is null or not! This is clearly incorrect, so this patch reorders the
asserts.



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