Set source location for for start label.

This commit is contained in:
chriseth 2017-06-14 15:37:14 +02:00 committed by Alex Beregszaszi
parent ce5ef08e05
commit 667a9d32aa

View File

@ -353,6 +353,7 @@ void CodeTransform::operator()(ForLoop const& _forLoop)
AbstractAssembly::LabelID loopEnd = m_assembly.newLabelId();
AbstractAssembly::LabelID postPart = m_assembly.newLabelId();
m_assembly.setSourceLocation(_forLoop.location);
m_assembly.appendLabel(loopStart);
visitExpression(*_forLoop.condition);