]> granicus.if.org Git - clang/commitdiff
[AST importer] Do a correct import of a FunctionProtoType::ExtProtoInfo, don't pass
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>
Fri, 21 Sep 2012 22:04:02 +0000 (22:04 +0000)
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>
Fri, 21 Sep 2012 22:04:02 +0000 (22:04 +0000)
nodes from the imported ASTContext.

rdar://12348924

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@164416 91177308-0d34-0410-b5e6-96231b3b80d8

lib/AST/ASTImporter.cpp

index 3e952acdcb4272be72cffd26c137ae9229a0d6df..c9968e427a4a482ba20912417c21e25447be1281 100644 (file)
@@ -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);