diff options
author | Richard Trieu <rtrieu@google.com> | 2018-01-19 20:46:19 +0000 |
---|---|---|
committer | Richard Trieu <rtrieu@google.com> | 2018-01-19 20:46:19 +0000 |
commit | b340925d70563557d532c699f7b1b681fb621dfe (patch) | |
tree | 877331138b99c5a6f687a63368b328b6cc6bf284 /lib/CodeGen | |
parent | f11660ab09526b0c35d6009ecf0b7283f87d0cc5 (diff) |
Allow BlockDecl in CXXRecord scope to have no access specifier.
Using a BlockDecl in a default member initializer causes it to be attached to
CXXMethodDecl without its access specifier being set. This prevents a crash
where getAccess is called on this BlockDecl, since that method expects any
Decl in CXXRecord scope to have an access specifier.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@322984 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen')
0 files changed, 0 insertions, 0 deletions