summaryrefslogtreecommitdiffstats
path: root/clang/lib/Basic/Targets.cpp
diff options
context:
space:
mode:
authorDavid Majnemer <david.majnemer@gmail.com>2014-09-18 00:42:05 +0000
committerDavid Majnemer <david.majnemer@gmail.com>2014-09-18 00:42:05 +0000
commitd8e366ba196e8f38f55f8e1da8501b8f9e4dfd89 (patch)
treeaacc94a9e6fa82df1b4554e48b123c21f8ceee8a /clang/lib/Basic/Targets.cpp
parentd4838554ac68e6f994cb4d84d23a89ba0af854f0 (diff)
downloadbcm5719-llvm-d8e366ba196e8f38f55f8e1da8501b8f9e4dfd89.tar.gz
bcm5719-llvm-d8e366ba196e8f38f55f8e1da8501b8f9e4dfd89.zip
Sema: Diagnose undefined structs used as Microsoft anonymous structs
Previously, we would not mark structs containing anonymous structs as invalid. Later, horrific things would occur when trying to determine the size of the parent record. Instead, require the struct to be a complete type when used as an anonymous struct. Mark both the anonymous field for the struct and the parent context as invalid (this is similar to what we do when a struct contains a field with an incomplete type.) This fixes PR11847. llvm-svn: 218006
Diffstat (limited to 'clang/lib/Basic/Targets.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud