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

@@ -21,7 +21,7 @@ findConcatenatedExpressions(const ResolvedRangeInfo &Info, ASTContext &Ctx) {
switch (Info.Kind) {
case RangeKind::SingleExpression:
E = Info.ContainedNodes[0].get<Expr *>();
E = cast<Expr *>(Info.ContainedNodes[0]);
break;
case RangeKind::PartOfExpression:
E = Info.CommonExprParent;