mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Fix some more misuses of LLVM's YAML parser. (#15119)
https://reviews.llvm.org/D44317 should prevent this from happening again.
This commit is contained in:
@@ -939,7 +939,7 @@ SDKNode* SDKNode::constructSDKNode(SDKContext &Ctx,
|
||||
SDKNodeInitInfo Info(Ctx);
|
||||
NodeVector Children;
|
||||
|
||||
for (auto Pair : *Node) {
|
||||
for (auto &Pair : *Node) {
|
||||
switch(parseKeyKind(GetScalarString(Pair.getKey()))) {
|
||||
case KeyKind::KK_kind:
|
||||
Kind = parseSDKNodeKind(GetScalarString(Pair.getValue()));
|
||||
|
||||
Reference in New Issue
Block a user