From: Argyrios Kyrtzidis Date: Fri, 21 Sep 2012 22:17:13 +0000 (+0000) Subject: Fix build errors. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6ddca84d10cab043cf34e3f77ad2379cebd96af6;p=clang Fix build errors. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@164417 91177308-0d34-0410-b5e6-96231b3b80d8 --- 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);