summaryrefslogtreecommitdiffstats
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
commit89df5ecaf2222e1104cbb11292fdb1272170f57c (patch)
treebdff3be947bbf101a1d5b4867f0b6fed1a78c7ae
parent9c71b1e0be3aa87180557665806ba11b162d02ed (diff)
downloadbcm5719-llvm-89df5ecaf2222e1104cbb11292fdb1272170f57c.tar.gz
bcm5719-llvm-89df5ecaf2222e1104cbb11292fdb1272170f57c.zip
Fix build errors.
llvm-svn: 164417
-rw-r--r--clang/lib/AST/ASTImporter.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/clang/lib/AST/ASTImporter.cpp b/clang/lib/AST/ASTImporter.cpp
index c9968e427a4..e1963872481 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<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);
OpenPOWER on IntegriCloud