Skip to content

Commit ec96335

Browse files
committed
Revert "[asm-cherry-pick] Associate LabelNodes with their corresponding label"
This reverts commit 448e9fa.
1 parent d9fe585 commit ec96335

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/main/java/scala/tools/asm/tree/MethodNode.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -570,10 +570,7 @@ public void visitEnd() {
570570
*/
571571
protected LabelNode getLabelNode(final Label label) {
572572
if (!(label.info instanceof LabelNode)) {
573-
// Patch in scala-asm: changed `new LabelNode()` to `new LabelNode(l)`
574-
// TODO: check if this can go upstream, or if it is still discouraged
575-
// https://mail.ow2.org/wws/arc/asm/2011-07/msg00032.html
576-
label.info = new LabelNode(label);
573+
label.info = new LabelNode();
577574
}
578575
return (LabelNode) label.info;
579576
}

0 commit comments

Comments
 (0)