diff options
author | Douglas Gregor <dgregor@apple.com> | 2015-07-07 06:20:12 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2015-07-07 06:20:12 +0000 |
commit | ab7f0b342f2f5dd85c6ede23bc843c5128f6ed10 (patch) | |
tree | d8f0a47688af0f31df19d658c0eb2306edb5eac3 /clang/lib/Frontend/ASTUnit.cpp | |
parent | bc4c89a9775f01531350c057f527fcc707c84184 (diff) | |
download | bcm5719-llvm-ab7f0b342f2f5dd85c6ede23bc843c5128f6ed10.tar.gz bcm5719-llvm-ab7f0b342f2f5dd85c6ede23bc843c5128f6ed10.zip |
The AST importer had a bug where it would enter into an infinite recursion
when importing type parameter lists. The reason is that type parameters
have their DeclContexts set to the interface that is parameterized with those
types, and the importer would follow that loop and blow the stack out.
I've changed the way this works so that the type parameters are only imported
after the interface that contains them has been registered via the Imported()
function.
This is tested by LLDB.
<rdar://problem/20315663>
llvm-svn: 241556
Diffstat (limited to 'clang/lib/Frontend/ASTUnit.cpp')
0 files changed, 0 insertions, 0 deletions