[all-commits] [llvm/llvm-project] e62c0c: [clang][bytecode] Fix comparing `TemplateParamObje...

Timm Baeder via All-commits all-commits at lists.llvm.org
Sun Jul 12 01:31:24 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: e62c0cb076fbcb70752530571726944648a48829
      https://github.com/llvm/llvm-project/commit/e62c0cb076fbcb70752530571726944648a48829
  Author: Timm Baeder <tbaeder at redhat.com>
  Date:   2026-07-12 (Sun, 12 Jul 2026)

  Changed paths:
    M clang/lib/AST/ByteCode/Compiler.cpp
    M clang/lib/AST/ByteCode/Pointer.cpp
    M clang/test/PCH/cxx20-template-args.cpp

  Log Message:
  -----------
  [clang][bytecode] Fix comparing `TemplateParamObjectDecl`s (#208734)

1) When creating the global variables for them, always use the first
decl
2) When converting null pointers to `APValue`, don't cast the nullptr
base to `Expr` or `ValueDecl`. Use `LValueBase()` instead, so the
internal `PointerUnion` has an all-zeros value as `getOpaqueValue()`. If
we don't do this, we run into problems with merging of
`TemplateParamObjectDecls` because they don't compare equal via
`::Profile()`.



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