[all-commits] [llvm/llvm-project] 1e146d: [Sema] Migrate away from PointerUnion::{is, get} (N...
Kazu Hirata via All-commits
all-commits at lists.llvm.org
Sat Dec 21 08:18:03 PST 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 1e146dfb4fc82229c17ba5a7da847d87de214351
https://github.com/llvm/llvm-project/commit/1e146dfb4fc82229c17ba5a7da847d87de214351
Author: Kazu Hirata <kazu at google.com>
Date: 2024-12-21 (Sat, 21 Dec 2024)
Changed paths:
M clang/include/clang/Sema/SemaConcept.h
M clang/lib/Sema/SemaConcept.cpp
Log Message:
-----------
[Sema] Migrate away from PointerUnion::{is,get} (NFC) (#120829)
Note that PointerUnion::{is,get} have been soft deprecated in
PointerUnion.h:
// FIXME: Replace the uses of is(), get() and dyn_cast() with
// isa<T>, cast<T> and the llvm::dyn_cast<T>
I'm moving the definitions of several functions to SemaConcept.cpp
because llvm::cast requires the full definitions of
NormalizedConstraintPair, which is used like so:
using CompoundConstraint = llvm::PointerIntPair<NormalizedConstraintPair
*, 1,
CompoundConstraintKind>;
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