to set that of VarDecl for block variables
(they are already set). Per Doug's comment.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@108273
91177308-0d34-0410-b5e6-
96231b3b80d8
CurrentInstantiationScope->InstantiatedLocal(OldParm, NewParm);
// Set DeclContext if inside a Block.
- if (BlockScopeInfo *CurBlock = getCurBlock())
- NewParm->setDeclContext(CurBlock->TheDecl);
+ NewParm->setDeclContext(CurContext);
return NewParm;
}
SemaRef.CurrentInstantiationScope->InstantiatedLocal(D, Var);
}
InstantiateAttrs(D, Var);
- // Set DeclContext if inside a Block.
- if (BlockScopeInfo *CurBlock = SemaRef.getCurBlock())
- D->setDeclContext(CurBlock->TheDecl);
// Link instantiations of static data members back to the template from
// which they were instantiated.