[all-commits] [llvm/llvm-project] 36b179: [clang][Sema] Crash due to asm labeled incomplete ...

Oliver Hunt via All-commits all-commits at lists.llvm.org
Mon Sep 7 14:10:01 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 36b179dff5c85de0a7aca763e618d8c15dd5b2e7
      https://github.com/llvm/llvm-project/commit/36b179dff5c85de0a7aca763e618d8c15dd5b2e7
  Author: Oliver Hunt <oliver at apple.com>
  Date:   2026-09-07 (Mon, 07 Sep 2026)

  Changed paths:
    M clang/docs/ReleaseNotes.md
    M clang/lib/Sema/SemaDecl.cpp
    A clang/test/Sema/global-explicit-register-undefined-type.c

  Log Message:
  -----------
  [clang][Sema] Crash due to asm labeled incomplete global register decls (#219746)

CheckAsmLabel fails to check for an incomplete type before attempting to
get the type layout. Short circuit on an incomplete type as Sema will
already reject a global with an incomplete type.



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