[Bug] Fix formatting of anonymous labels (#362)

Anonymous labels accidentally called `sb.append` instead of
`sb.appendFormat` which messes up the label's formatting.
This commit is contained in:
Adrian Vogelsgesang
2022-04-05 13:18:10 +02:00
committed by GitHub
parent a876e4d1cd
commit 752eb38a4d

View File

@@ -143,7 +143,7 @@ Error formatLabel(
} }
if (le->type() == LabelType::kAnonymous) if (le->type() == LabelType::kAnonymous)
ASMJIT_PROPAGATE(sb.append("L%u@", labelId)); ASMJIT_PROPAGATE(sb.appendFormat("L%u@", labelId));
return sb.append(le->name()); return sb.append(le->name());
} }
else { else {