[cfe-commits] r164416 - /cfe/trunk/lib/AST/ASTImporter.cpp
Argyrios Kyrtzidis
akyrtzi at gmail.com
Fri Sep 21 15:04:02 PDT 2012
Author: akirtzidis
Date: Fri Sep 21 17:04:02 2012
New Revision: 164416
URL: http://llvm.org/viewvc/llvm-project?rev=164416&view=rev
Log:
[AST importer] Do a correct import of a FunctionProtoType::ExtProtoInfo, don't pass
nodes from the imported ASTContext.
rdar://12348924
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=164416&r1=164415&r2=164416&view=diff
==============================================================================
--- cfe/trunk/lib/AST/ASTImporter.cpp (original)
+++ cfe/trunk/lib/AST/ASTImporter.cpp Fri Sep 21 17:04:02 2012
@@ -1511,6 +1511,9 @@
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);
return Importer.getToContext().getFunctionType(ToResultType, ArgTypes.data(),
ArgTypes.size(), EPI);
More information about the cfe-commits
mailing list