From: Benjamin Kramer Date: Thu, 23 Nov 2017 21:07:11 +0000 (+0000) Subject: [YAMLParser] Fix unused variable warning. X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=cb100af21c05bb60c63eda8192726835d5bddd56;p=platform%2Fupstream%2Fllvm.git [YAMLParser] Fix unused variable warning. llvm-svn: 318936 --- diff --git a/llvm/include/llvm/Support/YAMLParser.h b/llvm/include/llvm/Support/YAMLParser.h index 859c2c1..c907a99 100644 --- a/llvm/include/llvm/Support/YAMLParser.h +++ b/llvm/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();