File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -287,6 +287,9 @@ class Instrumenter : InstrumenterBase {
287
287
288
288
DeferStmt *transformDeferStmt (DeferStmt *DS) {
289
289
if (auto *FD = DS->getTempDecl ()) {
290
+ // Temporarily unmark the DeferStmt's FuncDecl as implicit so it is
291
+ // transformed (as typically implicit Decls are skipped by the
292
+ // transformer).
290
293
auto Implicit = FD->isImplicit ();
291
294
FD->setImplicit (false );
292
295
auto *D = transformDecl (FD);
Original file line number Diff line number Diff line change @@ -157,6 +157,9 @@ class Instrumenter : InstrumenterBase {
157
157
158
158
DeferStmt *transformDeferStmt (DeferStmt *DS) {
159
159
if (auto *FD = DS->getTempDecl ()) {
160
+ // Temporarily unmark the DeferStmt's FuncDecl as implicit so it is
161
+ // transformed (as typically implicit Decls are skipped by the
162
+ // transformer).
160
163
auto Implicit = FD->isImplicit ();
161
164
FD->setImplicit (false );
162
165
auto *D = transformDecl (FD);
You can’t perform that action at this time.
0 commit comments