Remove redundant test: PSGIs.empty()

This commit is contained in:
David Ungar
2018-01-17 13:45:27 -08:00
parent cbd1d481fb
commit 2d7607f3b8

View File

@@ -798,7 +798,7 @@ static bool performCompile(CompilerInstance &Instance,
if (auto SM = Instance.takeSILModule()) {
PSGIs.push_back(PostSILGenInputs{std::move(SM), false, mod});
}
else if (PSGIs.empty()) {
else {
auto fileIsSIB = [](const FileUnit *File) -> bool {
auto SASTF = dyn_cast<SerializedASTFile>(File);
return SASTF && SASTF->isSIB();