[YAMLParser] Fix unused variable warning.
authorBenjamin Kramer <benny.kra@googlemail.com>
Thu, 23 Nov 2017 21:07:11 +0000 (21:07 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Thu, 23 Nov 2017 21:07:11 +0000 (21:07 +0000)
llvm-svn: 318936

llvm/include/llvm/Support/YAMLParser.h

index 859c2c1..c907a99 100644 (file)
@@ -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();