[AST importer] Do a correct import of a FunctionProtoType::ExtProtoInfo, don't pass

nodes from the imported ASTContext.

rdar://12348924

llvm-svn: 164416
This commit is contained in:
Argyrios Kyrtzidis 2012-09-21 22:04:02 +00:00
parent 3d325cf3f1
commit 9c71b1e0be
1 changed files with 3 additions and 0 deletions

View File

@ -1511,6 +1511,9 @@ QualType ASTNodeImporter::VisitFunctionProtoType(const FunctionProtoType *T) {
FunctionProtoType::ExtProtoInfo EPI = T->getExtProtoInfo(); FunctionProtoType::ExtProtoInfo EPI = T->getExtProtoInfo();
EPI.Exceptions = ExceptionTypes.data(); EPI.Exceptions = ExceptionTypes.data();
EPI.NoexceptExpr = Importer.Import(EPI.NoexceptExpr);
EPI.ExceptionSpecDecl = Importer.Import(EPI.ExceptionSpecDecl);
EPI.ExceptionSpecTemplate = Importer.Import(EPI.ExceptionSpecTemplate);
return Importer.getToContext().getFunctionType(ToResultType, ArgTypes.data(), return Importer.getToContext().getFunctionType(ToResultType, ArgTypes.data(),
ArgTypes.size(), EPI); ArgTypes.size(), EPI);