[llvm] r318936 - [YAMLParser] Fix unused variable warning.
Benjamin Kramer via llvm-commits
llvm-commits at lists.llvm.org
Thu Nov 23 13:07:12 PST 2017
Author: d0k
Date: Thu Nov 23 13:07:11 2017
New Revision: 318936
URL: http://llvm.org/viewvc/llvm-project?rev=318936&view=rev
Log:
[YAMLParser] Fix unused variable warning.
Modified:
llvm/trunk/include/llvm/Support/YAMLParser.h
Modified: llvm/trunk/include/llvm/Support/YAMLParser.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Support/YAMLParser.h?rev=318936&r1=318935&r2=318936&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Support/YAMLParser.h (original)
+++ llvm/trunk/include/llvm/Support/YAMLParser.h Thu Nov 23 13:07:11 2017
@@ -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();
More information about the llvm-commits
mailing list