File tree Expand file tree Collapse file tree 2 files changed +23
-6
lines changed Expand file tree Collapse file tree 2 files changed +23
-6
lines changed Original file line number Diff line number Diff line change @@ -611,15 +611,19 @@ class Instrumenter {
611
611
Elements.insert (Elements.begin () + (EI + 1 ), *Log);
612
612
++EI;
613
613
}
614
+ Handled = true ;
614
615
}
615
- } else if (DeclRefExpr *DRE = digForInoutDeclRef (AE->getArg ())) {
616
- Added<Stmt *> Log = logDeclOrMemberRef (DRE);
617
- if (*Log) {
618
- Elements.insert (Elements.begin () + (EI + 1 ), *Log);
619
- ++EI;
616
+ }
617
+ if (!Handled) {
618
+ if (DeclRefExpr *DRE = digForInoutDeclRef (AE->getArg ())) {
619
+ Added<Stmt *> Log = logDeclOrMemberRef (DRE);
620
+ if (*Log) {
621
+ Elements.insert (Elements.begin () + (EI + 1 ), *Log);
622
+ ++EI;
623
+ }
624
+ Handled = true ;
620
625
}
621
626
}
622
- Handled = true ;
623
627
}
624
628
if (!Handled) {
625
629
// do the same as for all other expressions
Original file line number Diff line number Diff line change
1
+ // RUN: rm -rf %t
2
+ // RUN: mkdir %t
3
+ // RUN: cp %s %t/main.swift
4
+ // RUN: %target-build-swift -Xfrontend -playground -Xfrontend -debugger-support -o %t/main %S/Inputs/PlaygroundsRuntime.swift %t/main.swift
5
+ // RUN: %target-run %t/main | %FileCheck %s
6
+ // REQUIRES: executable_test
7
+
8
+ var a = " a "
9
+ var b = " b "
10
+ a += b
11
+ // CHECK: [{{.*}}] $builtin_log[a='a']
12
+ // CHECK-NEXT: [{{.*}}] $builtin_log[b='b']
13
+ // CHECK-NEXT: [{{.*}}] $builtin_log[a='ab']
You can’t perform that action at this time.
0 commit comments