[PATCH] D29208: Prevent ICE in dllexport class with _Atomic() data member

Warren Ristow via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Jan 26 18:39:42 PST 2017


wristow added a comment.

When a class that has been tagged as dllexport (for an MSVC target) contains an atomic data member via the C11 '_Atomic' approach, the front end crashes with a null pointer dereference.
This patch fixes it by guarding the null dereference with the approach used by similar code in the same method.


https://reviews.llvm.org/D29208





More information about the cfe-commits mailing list