@@ -359,12 +359,13 @@ public static void emitExprTrace(GeneratorAdapter gen, ObjExpr objx, IPersistent
359
359
public static void emitBindTrace (GeneratorAdapter gen , ObjExpr objx , BindingInit bi , IPersistentVector coord ) {
360
360
Integer formId = (Integer ) Compiler .FORM_ID .deref ();
361
361
if (bindInstrumentationEnable && formId != null ) {
362
- String symName = Compiler .demunge (bi .binding ().name );
362
+ String bindingName = Compiler .demunge (bi .binding ().name );
363
+ String symName = bi .binding ().sym .getName ();
363
364
Integer bIdx = bi .binding ().idx ;
364
365
365
366
if (((objx instanceof FnExpr && !skipInstrumentation (((FnExpr )objx ).name ())) || (objx instanceof NewInstanceExpr && !skipInstrumentation (((NewInstanceExpr )objx ).name ()))) &&
366
367
coord != null &&
367
- (!(symName .equals ("-" ) || symName .contains ("--" ))))
368
+ (!(bindingName .equals ("-" ) || bindingName .contains ("--" ))))
368
369
{
369
370
370
371
Type valType = null ;
@@ -390,12 +391,13 @@ public static void emitBindTraces(GeneratorAdapter gen, ObjExpr objx, IPersisten
390
391
((objx instanceof FnExpr && !skipInstrumentation (((FnExpr ) objx ).name ())) || (objx instanceof NewInstanceExpr && !skipInstrumentation (((NewInstanceExpr ) objx ).name ())))) {
391
392
392
393
for (int i = 0 ; i < localBindings .count (); i ++) {
393
-
394
+
394
395
LocalBinding lb = (LocalBinding ) localBindings .nth (i );
395
396
396
- String symName = Compiler .demunge (lb .name );
397
+ String bindingName = Compiler .demunge (lb .name );
398
+ String symName = lb .sym .getName ();
397
399
398
- if (coord != null && !(symName .equals ("-" ) || symName .contains ("--" )) && lb .used ) {
400
+ if (coord != null && !(bindingName .equals ("-" ) || bindingName .contains ("--" )) && lb .used ) {
399
401
400
402
objx .emitLocal (gen , lb , false , null );
401
403
0 commit comments