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 f39df1d commit 90b23a6Copy full SHA for 90b23a6
lib/SIL/IR/SILValue.cpp
@@ -83,7 +83,7 @@ SILInstruction *ValueBase::getDefiningInsertionPoint() {
83
84
SILInstruction *ValueBase::getNextInstruction() {
85
if (auto *inst = getDefiningInstruction())
86
- return std::next(inst);
+ return &*std::next(inst->getIterator());
87
if (auto *arg = dyn_cast<SILArgument>(this))
88
return &*arg->getParentBlock()->begin();
89
return nullptr;
0 commit comments