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:
Jordan Rose
2018-03-10 17:47:14 -08:00
committed by GitHub
parent 501c1fd31b
commit c26f40b45b
3 changed files with 3 additions and 3 deletions

View File

@@ -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()));