]> granicus.if.org Git - clang/commit
Merging r322984:
authorHans Wennborg <hans@hanshq.net>
Mon, 22 Jan 2018 12:54:39 +0000 (12:54 +0000)
committerHans Wennborg <hans@hanshq.net>
Mon, 22 Jan 2018 12:54:39 +0000 (12:54 +0000)
commit8231d6059b6a185649957dd044adffe98ae3524e
tree43cb504f19ca9f50a6d359f75683d8cdfb6cbe63
parent269eda939b6cef6d88e3b6633010032b6cf70121
Merging r322984:
------------------------------------------------------------------------
r322984 | rtrieu | 2018-01-19 21:46:19 +0100 (Fri, 19 Jan 2018) | 7 lines

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/branches/release_60@323108 91177308-0d34-0410-b5e6-96231b3b80d8
lib/AST/DeclBase.cpp
test/Modules/odr_hash-blocks.cpp [new file with mode: 0644]