[ASTImporter] Lookup SearchName instead of Name
authorGabor Horvath <xazax.hun@gmail.com>
Mon, 3 Apr 2017 09:30:20 +0000 (09:30 +0000)
committerGabor Horvath <xazax.hun@gmail.com>
Mon, 3 Apr 2017 09:30:20 +0000 (09:30 +0000)
commit5558ba2d82d7e6c0d30a3a3c1a3de790ca6abac3
tree810815990001c80b5643ad2cea58b3cfc0977ef1
parentbd96c73a1a060b23d231ce121d63ad0b3217ac56
[ASTImporter] Lookup SearchName instead of Name

When the SearchName is already calculated we should use that for the lookup.

Patch by Peter Szecsi!

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

llvm-svn: 299354
clang/lib/AST/ASTImporter.cpp
clang/test/ASTMerge/struct/Inputs/struct1.c
clang/test/ASTMerge/struct/Inputs/struct2.c
clang/test/ASTMerge/struct/test.c