mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-12-13 02:21:45 +00:00
[RGT][TextAPI] Remove a zero-trip loop and the assertions within it
Found by the Rotten Green Tests project. Differential Revision: https://reviews.llvm.org/D95259
This commit is contained in:
parent
6ea7ecbb72
commit
25fefa5a09
@ -255,18 +255,9 @@ TEST(TBDv4, ReadMultipleDocuments) {
|
||||
{Targets[0], Targets[2]});
|
||||
EXPECT_EQ(1U, File->reexportedLibraries().size());
|
||||
EXPECT_EQ(reexport, File->reexportedLibraries().front());
|
||||
ExportedSymbolSeq Exports;
|
||||
for (const auto *Sym : File->symbols()) {
|
||||
EXPECT_FALSE(Sym->isWeakReferenced());
|
||||
EXPECT_FALSE(Sym->isUndefined());
|
||||
Exports.emplace_back(ExportedSymbol{Sym->getKind(), Sym->getName().str(),
|
||||
Sym->isWeakDefined(),
|
||||
Sym->isThreadLocalValue()});
|
||||
}
|
||||
EXPECT_EQ(0U, Exports.size());
|
||||
EXPECT_TRUE(File->symbols().empty());
|
||||
|
||||
// Check Inlined Document
|
||||
Exports.clear();
|
||||
Targets.clear();
|
||||
Uuids.clear();
|
||||
PlatformKind Platform = PlatformKind::macOS;
|
||||
@ -292,6 +283,7 @@ TEST(TBDv4, ReadMultipleDocuments) {
|
||||
EXPECT_TRUE(Document->isApplicationExtensionSafe());
|
||||
EXPECT_FALSE(Document->isInstallAPI());
|
||||
|
||||
ExportedSymbolSeq Exports;
|
||||
ExportedSymbolSeq Reexports, Undefineds;
|
||||
for (const auto *Sym : Document->symbols()) {
|
||||
ExportedSymbol Temp =
|
||||
|
Loading…
Reference in New Issue
Block a user