Skip to content

Commit b6e8eca

Browse files
committed
[NFC] MoveOnly: Used newly standard constructor.
1 parent a955a01 commit b6e8eca

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/SILOptimizer/Mandatory/MoveOnlyBorrowToDestructureUtils.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -375,8 +375,8 @@ bool Implementation::gatherUses(SILValue value) {
375375
// the switch dispatch. If the final pattern match ends up destructuring
376376
// the value, then SILGen emits that as a separate access.
377377
if (auto switchEnum = dyn_cast<SwitchEnumInst>(nextUse->getUser())) {
378-
auto leafRange = TypeTreeLeafTypeRange::get(switchEnum->getOperand(),
379-
getRootValue());
378+
auto leafRange = TypeTreeLeafTypeRange::get(
379+
&switchEnum->getOperandRef(), getRootValue());
380380
if (!leafRange) {
381381
LLVM_DEBUG(llvm::dbgs() << " Failed to compute leaf range?!\n");
382382
return false;

0 commit comments

Comments
 (0)