mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
change to the new llvm::Optional APIs
This is a follow-up of https://github.com/apple/swift/pull/62217
This commit is contained in:
@@ -1069,7 +1069,7 @@ bool CSE::canHandle(SILInstruction *Inst) {
|
||||
// In non-OSSA we don't balance CSE'd apply results which return an
|
||||
// owned value.
|
||||
if (auto ri = AI->getSingleResult()) {
|
||||
if (ri.getValue().getConvention() != ResultConvention::Unowned)
|
||||
if (ri.value().getConvention() != ResultConvention::Unowned)
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user