Skip to content

Commit

Permalink
Fix LocalVariable table not having the var name
Browse files Browse the repository at this point in the history
  • Loading branch information
riyafa committed Mar 5, 2020
1 parent e4643c3 commit 53f67cb
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -528,14 +528,14 @@ public static void genJMethodForBFunc(BIRFunction func,
endLabel = labelGen.getLabel(funcName + localVar.endBB.id.value + "beforeTerm");
}
}
String metaVarName = localVar.name.value;
if (!"".equals(metaVarName) &&
String metaVarName = localVar.metaVarName;
if (metaVarName != null && !"".equals(metaVarName) &&
// filter out compiler added vars
!((metaVarName.startsWith("$") && metaVarName.endsWith("$"))
|| (metaVarName.startsWith("$$") && metaVarName.endsWith("$$"))
|| metaVarName.startsWith("_$$_"))) {
mv.visitLocalVariable(metaVarName, getJVMTypeSign(localVar.type), null,
startLabel, endLabel, indexMap.getIndex(localVar));
startLabel, endLabel, indexMap.getIndex(localVar));
}
}
k = k + 1;
Expand Down

0 comments on commit 53f67cb

Please sign in to comment.