From 699de777521dc2e2768ef0558bf39d2fc905ba2c Mon Sep 17 00:00:00 2001 From: Benjamin Kramer Date: Thu, 23 Nov 2017 21:07:11 +0000 Subject: [PATCH] [YAMLParser] Fix unused variable warning. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@318936 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/Support/YAMLParser.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); -- 2.50.1