diff --git a/lib/Backend/IRBuilderAsmJs.cpp b/lib/Backend/IRBuilderAsmJs.cpp index 5ac08230eff..fe1973adef0 100644 --- a/lib/Backend/IRBuilderAsmJs.cpp +++ b/lib/Backend/IRBuilderAsmJs.cpp @@ -995,7 +995,7 @@ IRBuilderAsmJs::CreateLabel(IR::BranchInstr * branchInstr, uint & offset) } IR::LabelInstr * labelInstr; - if (instrPrev && instrPrev->IsLabelInstr() && instrPrev->GetByteCodeOffset() == offset) + if (instrPrev && instrPrev->IsLabelInstr()) { // Found an existing label at the right offset. Just reuse it. labelInstr = instrPrev->AsLabelInstr();