]> granicus.if.org Git - clang/commit
Prevent ICE in dllexport class with _Atomic data member
authorWarren Ristow <warren.ristow@sony.com>
Thu, 2 Feb 2017 17:53:34 +0000 (17:53 +0000)
committerWarren Ristow <warren.ristow@sony.com>
Thu, 2 Feb 2017 17:53:34 +0000 (17:53 +0000)
commit8fd292ed9018202a8ec132c8d691bb34dbb816fe
tree5b890067a8402896e81f54ba546f70f6a733dafc
parent21c8bcd7af5d5a4fdc56674fb3e34540c143b8de
Prevent ICE in dllexport class with _Atomic data member

Guard against a null pointer dereference that caused Clang to crash
when processing a class containing an _Atomic qualified data member,
and that is tagged with 'dllexport'.

Differential Revision: https://reviews.llvm.org/D29208

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@293911 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CGClass.cpp
test/CodeGenCXX/atomic-dllexport.cpp [new file with mode: 0644]