diff options
author | David Majnemer <david.majnemer@gmail.com> | 2014-08-11 18:33:59 +0000 |
---|---|---|
committer | David Majnemer <david.majnemer@gmail.com> | 2014-08-11 18:33:59 +0000 |
commit | 36ef89895c3826f033f216729d47ed416e87a482 (patch) | |
tree | f843f97f08c8343dbc1c00ee1282ff5bcb47e81d /clang/lib/Basic/FileManager.cpp | |
parent | d42367478d5d988a41991701cf5b1f807f0c46b1 (diff) | |
download | llvm-36ef89895c3826f033f216729d47ed416e87a482.zip llvm-36ef89895c3826f033f216729d47ed416e87a482.tar.gz llvm-36ef89895c3826f033f216729d47ed416e87a482.tar.bz2 |
Sema: Properly perform lookup when acting on fields for desig inits
Clang used a custom implementation of lookup when handling designated
initializers. The custom code was not particularly optimized and relied
on standard lookup for typo-correction anyway.
This custom code has to go, it doesn't properly support MSVC-style
anonymous structs embedded inside other records; replace it with the
typo-correction path.
This has the side effect of speeding up semantic handling of the fields
for a designated initializer while simplifying the code at the same
time.
This fixes PR20573.
Differential Revision: http://reviews.llvm.org/D4839
llvm-svn: 215372
Diffstat (limited to 'clang/lib/Basic/FileManager.cpp')
0 files changed, 0 insertions, 0 deletions