aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2012-09-21 22:04:02 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2012-09-21 22:04:02 +0000
commitac70c1abbf97127ae33421332bd926232079b49e (patch)
tree10fadfaade51630fb274edef6c60ec8d3e34a242
parentfd09088880f758c874edc8d3d22fa922baec0483 (diff)
[AST importer] Do a correct import of a FunctionProtoType::ExtProtoInfo, don't pass
nodes from the imported ASTContext. rdar://12348924 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@164416 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/AST/ASTImporter.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/AST/ASTImporter.cpp b/lib/AST/ASTImporter.cpp
index 3e952acdcb..c9968e427a 100644
--- a/lib/AST/ASTImporter.cpp
+++ b/lib/AST/ASTImporter.cpp
@@ -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);