mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
use new llvm::Optional APIs to fix deprecation warnings
This commit is contained in:
@@ -554,7 +554,7 @@ TupleElementGenerator::TupleElementGenerator(
|
||||
assert(origTupleType.matchesTuple(substType));
|
||||
|
||||
origTupleVanishes =
|
||||
origTupleType.getVanishingTupleElementPatternType().hasValue();
|
||||
origTupleType.getVanishingTupleElementPatternType().has_value();
|
||||
origTupleTypeIsOpaque = origTupleType.isOpaqueTuple();
|
||||
numOrigElts = origTupleType.getNumTupleElements();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user