From 89df5ecaf2222e1104cbb11292fdb1272170f57c Mon Sep 17 00:00:00 2001 From: Argyrios Kyrtzidis Date: Fri, 21 Sep 2012 22:17:13 +0000 Subject: [PATCH] Fix build errors. llvm-svn: 164417 --- clang/lib/AST/ASTImporter.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/clang/lib/AST/ASTImporter.cpp b/clang/lib/AST/ASTImporter.cpp index c9968e4..e196387 100644 --- a/clang/lib/AST/ASTImporter.cpp +++ b/clang/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.7.4