We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a955a01 commit b6e8ecaCopy full SHA for b6e8eca
lib/SILOptimizer/Mandatory/MoveOnlyBorrowToDestructureUtils.cpp
@@ -375,8 +375,8 @@ bool Implementation::gatherUses(SILValue value) {
375
// the switch dispatch. If the final pattern match ends up destructuring
376
// the value, then SILGen emits that as a separate access.
377
if (auto switchEnum = dyn_cast<SwitchEnumInst>(nextUse->getUser())) {
378
- auto leafRange = TypeTreeLeafTypeRange::get(switchEnum->getOperand(),
379
- getRootValue());
+ auto leafRange = TypeTreeLeafTypeRange::get(
+ &switchEnum->getOperandRef(), getRootValue());
380
if (!leafRange) {
381
LLVM_DEBUG(llvm::dbgs() << " Failed to compute leaf range?!\n");
382
return false;
0 commit comments