use new llvm::Optional APIs to fix deprecation warnings

This commit is contained in:
Erik Eckstein
2023-06-28 14:28:38 +02:00
parent 746dd9823a
commit 6b1697eb06
20 changed files with 28 additions and 28 deletions

View File

@@ -554,7 +554,7 @@ TupleElementGenerator::TupleElementGenerator(
assert(origTupleType.matchesTuple(substType));
origTupleVanishes =
origTupleType.getVanishingTupleElementPatternType().hasValue();
origTupleType.getVanishingTupleElementPatternType().has_value();
origTupleTypeIsOpaque = origTupleType.isOpaqueTuple();
numOrigElts = origTupleType.getNumTupleElements();