Fixed a problem where the ASTImporter mishandled in-class initializers.
authorSean Callanan <scallanan@apple.com>
Thu, 3 Mar 2016 01:21:28 +0000 (01:21 +0000)
committerSean Callanan <scallanan@apple.com>
Thu, 3 Mar 2016 01:21:28 +0000 (01:21 +0000)
commitbb33f58a1a48021165619af088050f8576d41576
tree74b11d0a9c53077d19389e3e9a74d1d518c2e9da
parentae27b2380fe0b7fed17766ef8cba0683706cfc48
Fixed a problem where the ASTImporter mishandled in-class initializers.

Previously, the ASTImporter, when copying a FieldDecl, would make the
new FieldDecl use the exact same in-class initializer as the original
FieldDecl, which is a problem since the initializer is in the wrong AST.
The initializer must be imported, just like all the other parts of the
field.

Doug Gregor reviewed this fix.

<rdar://problem/24943405>

llvm-svn: 262572
clang/lib/AST/ASTImporter.cpp