diff options
| author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2012-09-21 22:04:02 +0000 |
|---|---|---|
| committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2012-09-21 22:04:02 +0000 |
| commit | 9c71b1e0be3aa87180557665806ba11b162d02ed (patch) | |
| tree | 26e3b70257e116a42640b67ff5807b4ce40ed46a | |
| parent | 3d325cf3f18244809b2fb91f35566dad67b5c694 (diff) | |
| download | bcm5719-llvm-9c71b1e0be3aa87180557665806ba11b162d02ed.tar.gz bcm5719-llvm-9c71b1e0be3aa87180557665806ba11b162d02ed.zip | |
[AST importer] Do a correct import of a FunctionProtoType::ExtProtoInfo, don't pass
nodes from the imported ASTContext.
rdar://12348924
llvm-svn: 164416
| -rw-r--r-- | clang/lib/AST/ASTImporter.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/lib/AST/ASTImporter.cpp b/clang/lib/AST/ASTImporter.cpp index 3e952acdcb4..c9968e427a4 100644 --- a/clang/lib/AST/ASTImporter.cpp +++ b/clang/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); |

