[PATCH] D47946: [ASTImporter] Fix infinite recursion on function import with struct definition in parameters
Aleksei Sidorin via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Jul 11 03:19:04 PDT 2018
a.sidorin accepted this revision.
a.sidorin added a comment.
Hello Zoltán,
Sorry for the delay. I think the patch is fine, just some minor nits inline.
================
Comment at: unittests/AST/ASTImporterTest.cpp:234
+ assert(ToAST);
+ createVirtualFileIfNeeded(ToAST.get(), It->FileName, It->Code);
+ return &*It;
----------------
Can we move the side effect into import()?
================
Comment at: unittests/AST/ASTImporterTest.cpp:1049
+ ImportType(FromVar->getType().getCanonicalType(), FromVar, Lang_C);
+ ASSERT_FALSE(ToType.isNull());
+}
----------------
EXPECT_FALSE?
https://reviews.llvm.org/D47946
More information about the cfe-commits
mailing list