[all-commits] [llvm/llvm-project] b76468: [clang] Fix #137518

Oliver Hunt via All-commits all-commits at lists.llvm.org
Thu Jul 10 16:54:53 PDT 2025


  Branch: refs/heads/users/ojhunt/pr-137518
  Home:   https://github.com/llvm/llvm-project
  Commit: b764685e6b74da439523f455550c4661f025d616
      https://github.com/llvm/llvm-project/commit/b764685e6b74da439523f455550c4661f025d616
  Author: Oliver Hunt <oliver at apple.com>
  Date:   2025-07-10 (Thu, 10 Jul 2025)

  Changed paths:
    M clang/lib/CodeGen/CGCXXABI.h
    M clang/lib/CodeGen/CGExprCXX.cpp
    M clang/lib/CodeGen/ItaniumCXXABI.cpp
    M clang/lib/CodeGen/MicrosoftCXXABI.cpp
    M clang/test/CodeGenCXX/dynamic-cast-exact-disabled.cpp
    M clang/test/CodeGenCXX/dynamic-cast-exact.cpp

  Log Message:
  -----------
  [clang] Fix #137518

The verification pass correctly identifies that the phi node produced
for an exact dynamic_cast that always fails. Rather than trying to
construct pretend that we have pass and fail paths through an invalid
exact dynamic_cast we handle the failure path explicitly.



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