forked from OSchip/llvm-project
[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:
parent
3d325cf3f1
commit
9c71b1e0be
|
@ -1511,6 +1511,9 @@ QualType ASTNodeImporter::VisitFunctionProtoType(const FunctionProtoType *T) {
|
|||
|
||||
FunctionProtoType::ExtProtoInfo EPI = T->getExtProtoInfo();
|
||||
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(),
|
||||
ArgTypes.size(), EPI);
|
||||
|
|
Loading…
Reference in New Issue