[cfe-commits] r164417 - /cfe/trunk/lib/AST/ASTImporter.cpp
Argyrios Kyrtzidis
akyrtzi at gmail.com
Fri Sep 21 15:17:13 PDT 2012
Author: akirtzidis
Date: Fri Sep 21 17:17:13 2012
New Revision: 164417
URL: http://llvm.org/viewvc/llvm-project?rev=164417&view=rev
Log:
Fix build errors.
Modified:
cfe/trunk/lib/AST/ASTImporter.cpp
Modified: cfe/trunk/lib/AST/ASTImporter.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/AST/ASTImporter.cpp?rev=164417&r1=164416&r2=164417&view=diff
==============================================================================
--- cfe/trunk/lib/AST/ASTImporter.cpp (original)
+++ cfe/trunk/lib/AST/ASTImporter.cpp Fri Sep 21 17:17:13 2012
@@ -1512,8 +1512,10 @@
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);
More information about the cfe-commits
mailing list