aboutsummaryrefslogtreecommitdiff
path: root/lib/Parse/Parser.cpp
diff options
context:
space:
mode:
authorSean Callanan <scallanan@apple.com>2011-10-21 02:57:43 +0000
committerSean Callanan <scallanan@apple.com>2011-10-21 02:57:43 +0000
commit9faf810f08132aabb34a478297dfeea89c3bbe17 (patch)
tree2347603dcfbcd3e2d477e8ed61839847f9a5d6c5 /lib/Parse/Parser.cpp
parent7c4fd9121f5885096fd3258d20a984e3f08f8603 (diff)
I added a new function to DeclContext called
addDeclInternal(). This function suppresses any calls to FindExternalVisibleDeclsByName() while a Decl is added to a DeclContext. This behavior is required for the ASTImporter, because in the case of the LLDB client the ASTImporter would be called recursively to import the visible decls, which leads to assertions because the recursive call is seeing partially-formed types. I also modified the ASTImporter to use addDeclInternal() in all places where it would otherwise use addDecl(). This fix should not affect the rest of Clang, passes Clang's testsuite, and fixes several serious LLDB bugs. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@142634 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Parse/Parser.cpp')
0 files changed, 0 insertions, 0 deletions