aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2012-09-21 22:17:13 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2012-09-21 22:17:13 +0000
commit6ddca84d10cab043cf34e3f77ad2379cebd96af6 (patch)
treef1652ef13ea0bca9718850e1954c968fd2cca53a
parentac70c1abbf97127ae33421332bd926232079b49e (diff)
Fix build errors.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@164417 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/AST/ASTImporter.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/AST/ASTImporter.cpp b/lib/AST/ASTImporter.cpp
index c9968e427a..e196387248 100644
--- a/lib/AST/ASTImporter.cpp
+++ b/lib/AST/ASTImporter.cpp
@@ -1512,8 +1512,10 @@ 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);
+ EPI.ExceptionSpecDecl
+ = cast_or_null<FunctionDecl>(Importer.Import(EPI.ExceptionSpecDecl));
+ EPI.ExceptionSpecTemplate
+ = cast_or_null<FunctionDecl>(Importer.Import(EPI.ExceptionSpecTemplate));
return Importer.getToContext().getFunctionType(ToResultType, ArgTypes.data(),
ArgTypes.size(), EPI);