[PATCH] Sema: Properly perform lookup when acting on fields for desig inits

David Majnemer david.majnemer at gmail.com
Sat Aug 9 20:13:49 PDT 2014


Hi rsmith,

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.

http://reviews.llvm.org/D4839

Files:
  lib/Sema/SemaInit.cpp
  test/Sema/MicrosoftExtensions.c
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D4839.12329.patch
Type: text/x-patch
Size: 6938 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20140810/fdd1ee04/attachment.bin>


More information about the cfe-commits mailing list