提交 6bf07486 编写于 作者: K Kevin Heifner

Verify definition exists to prevent SEGFAULT

上级 9846746a
......@@ -555,6 +555,7 @@ clang::CXXRecordDecl::base_class_range abi_generator::get_struct_bases(const cla
auto cxxrecord_decl = clang::dyn_cast<CXXRecordDecl>(record_type->getDecl());
ABI_ASSERT(cxxrecord_decl != nullptr);
//record_type->getCanonicalTypeInternal().dump();
ABI_ASSERT(cxxrecord_decl->hasDefinition(), "No definition for ${t}", ("t", qt.getAsString()));
auto bases = cxxrecord_decl->bases();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册