]> granicus.if.org Git - clang/commit
When importing a FunctionProtoType::ExtProtoInfo, its ExceptionSpecDecl can point...
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>
Sat, 22 Sep 2012 01:58:06 +0000 (01:58 +0000)
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>
Sat, 22 Sep 2012 01:58:06 +0000 (01:58 +0000)
commitf0fdefc13a58db2a8b32bb47ac23bc16efad6fda
tree35e0f8b4d19ff3c173d5df61b7a547e0a7f1522c
parentb9d4e5e3bb235f1149e99d3c833ff7cb3474c9f1
When importing a FunctionProtoType::ExtProtoInfo, its ExceptionSpecDecl can point to the
FunctionDecl that we are importing the FunctionProtoType for, in which case we'll have
infinite recursion when importing.

Initially create a FunctionProtoType with null ExceptionSpecDecl/ExceptionSpecTemplate and
update the type in ASTNodeImporter::VisitFunctionDecl after the FunctionDecl has been created.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@164450 91177308-0d34-0410-b5e6-96231b3b80d8
lib/AST/ASTImporter.cpp