We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 2dd49f5 + 56778b7 commit f5890ceCopy full SHA for f5890ce
lib/Basic/BlockList.cpp
@@ -115,8 +115,10 @@ void swift::BlockListStore::Implementation::addConfigureFilePath(StringRef path)
115
SM.getLLVMSourceMgr());
116
for (auto DI = Stream.begin(); DI != Stream.end(); ++ DI) {
117
assert(DI != Stream.end() && "Failed to read a document");
118
- yaml::Node *N = DI->getRoot();
119
- for (auto &pair: *dyn_cast<yaml::MappingNode>(N)) {
+ auto *MapNode = dyn_cast<yaml::MappingNode>(DI->getRoot());
+ if (!MapNode)
120
+ continue;
121
+ for (auto &pair: *MapNode) {
122
std::string key = getScalaString(pair.getKey());
123
auto action = llvm::StringSwitch<BlockListAction>(key)
124
#define BLOCKLIST_ACTION(X) .Case(#X, BlockListAction::X)
0 commit comments