[all-commits] [llvm/llvm-project] 1618d0: [TypeID] Update private typeid definition in `Defe...

Stef Lindall via All-commits all-commits at lists.llvm.org
Thu Feb 27 13:37:00 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 1618d09ce7846aca3d193aa02843ad29c8e638be
      https://github.com/llvm/llvm-project/commit/1618d09ce7846aca3d193aa02843ad29c8e638be
  Author: Stef Lindall <stef at modular.com>
  Date:   2025-02-27 (Thu, 27 Feb 2025)

  Changed paths:
    M mlir/lib/AsmParser/Parser.cpp

  Log Message:
  -----------
  [TypeID] Update private typeid definition in `DeferredLocInfo` (#128968)

The parser's `DeferredLocInfo` uses an uncommon TypeID setup, where it
defines a private TypeID for pointers to the struct.

When using the fallback TypeID mechanism introduced in
https://github.com/llvm/llvm-project/pull/126999, the fallback TypeID
mechanism doesn't support anonymous namespaces, and the
`INTERNAL_INLINE` mechanism doesn't support pointer types.

Explicitly use `SELF_OWNING_TYPE_ID` for this case. This should always
be safe for anonymous namespaces.



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