llvm-project
e62c0cb0 - [clang][bytecode] Fix comparing `TemplateParamObjectDecl`s (#208734)

Commit
58 days ago
[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()`.
Author
Parents
Loading