Skip to content

Commit 0b1ac25

Browse files
committed
lldb: use SILFunction::getEntryBlock() instead of SILFunction::getBlocks().begin().
SILFunction::getBlocks() will be removed. NFC
1 parent e3bea69 commit 0b1ac25

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)