Address llvm::PointerUnion::{is,get} deprecations

These were deprecated in
https://github.com/llvm/llvm-project/pull/122623.
This commit is contained in:
Anthony Latsis
2025-07-29 16:27:25 +01:00
parent a76ee5ea9f
commit fec049e5e4
139 changed files with 656 additions and 601 deletions

View File

@@ -810,7 +810,7 @@ namespace {
for (auto typeVar : typeVars) {
auto &impl = typeVar->getImpl();
if (impl.getRepresentativeOrFixed().is<TypeBase *>()) {
if (isa<TypeBase *>(impl.getRepresentativeOrFixed())) {
auto &node = cg[typeVar];
for (auto otherTypeVar : node.getReferencedVars()) {
unionSets(typeVar, otherTypeVar);