mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Address llvm::PointerUnion::{is,get} deprecations
These were deprecated in https://github.com/llvm/llvm-project/pull/122623.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user