From 6ddca84d10cab043cf34e3f77ad2379cebd96af6 Mon Sep 17 00:00:00 2001 From: Argyrios Kyrtzidis Date: Fri, 21 Sep 2012 22:17:13 +0000 Subject: [PATCH] Fix build errors. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@164417 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/AST/ASTImporter.cpp | 6 ++++-- 1 file 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(Importer.Import(EPI.ExceptionSpecDecl)); + EPI.ExceptionSpecTemplate + = cast_or_null(Importer.Import(EPI.ExceptionSpecTemplate)); return Importer.getToContext().getFunctionType(ToResultType, ArgTypes.data(), ArgTypes.size(), EPI); -- 2.40.0