From: Benjamin Kramer Date: Thu, 23 Nov 2017 21:07:11 +0000 (+0000) Subject: [YAMLParser] Fix unused variable warning. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=699de777521dc2e2768ef0558bf39d2fc905ba2c;p=llvm [YAMLParser] Fix unused variable warning. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@318936 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/Support/YAMLParser.h b/include/llvm/Support/YAMLParser.h index 859c2c1f7b3..c907a99ddb5 100644 --- a/include/llvm/Support/YAMLParser.h +++ b/include/llvm/Support/YAMLParser.h @@ -291,7 +291,7 @@ public: Node *getValue(); void skip() override { - if (Node *Val = getKey()) { + if (Node *Key = getKey()) { Key->skip(); if (Node *Val = getValue()) Val->skip();