[PATCH] D120065: [clang][SemaTemplate] Fix a stack use after scope
Kadir Cetinkaya via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Feb 17 12:47:25 PST 2022
kadircet added inline comments.
================
Comment at: clang/include/clang/AST/DeclTemplate.h:2464
FriendTemplateDecl(DeclContext *DC, SourceLocation Loc,
- MutableArrayRef<TemplateParameterList *> Params,
+ TemplateParameterList **Params, unsigned NumParams,
FriendUnion Friend, SourceLocation FriendLoc)
----------------
sammccall wrote:
> Is this change just to emphasize that this constructor won't copy the contents?
yes and also to keep the implementation of the constructor simple.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D120065/new/
https://reviews.llvm.org/D120065
More information about the cfe-commits
mailing list