Skip to content

Commit d6ec2e7

Browse files
authored
Merge pull request #2343 from eeckstein/fix-sil-function-api-rebranch
[swift/rebranch] lldb: use SILFunction::getEntryBlock() instead of SILFunction::getBlocks().begin().
2 parents e3bea69 + 0b1ac25 commit d6ec2e7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lldb/source/Plugins/ExpressionParser/Swift/SwiftSILManipulator.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ swift::SILValue SwiftSILManipulator::emitLValueForVariable(
3737
swift::VarDecl *var, SwiftExpressionParser::SILVariableInfo &info) {
3838
swift::SILFunction &function = m_builder.getFunction();
3939

40-
swift::SILBasicBlock &entry_block = *function.getBlocks().begin();
40+
swift::SILBasicBlock &entry_block = *function.getEntryBlock();
4141

4242
swift::SILArgument *struct_argument = nullptr;
4343

0 commit comments

Comments
 (0)