[llvm] c8f0bb4 - YAMLTraits.h - fix uninitialized variable warning. NFCI.
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Fri Nov 8 07:31:22 PST 2019
Author: Simon Pilgrim
Date: 2019-11-08T15:09:54Z
New Revision: c8f0bb40214c5671e90b91e39c3857357a6ca918
URL: https://github.com/llvm/llvm-project/commit/c8f0bb40214c5671e90b91e39c3857357a6ca918
DIFF: https://github.com/llvm/llvm-project/commit/c8f0bb40214c5671e90b91e39c3857357a6ca918.diff
LOG: YAMLTraits.h - fix uninitialized variable warning. NFCI.
Added:
Modified:
llvm/include/llvm/Support/YAMLTraits.h
Removed:
################################################################################
diff --git a/llvm/include/llvm/Support/YAMLTraits.h b/llvm/include/llvm/Support/YAMLTraits.h
index f365d60b3ffa..8642069ad540 100644
--- a/llvm/include/llvm/Support/YAMLTraits.h
+++ b/llvm/include/llvm/Support/YAMLTraits.h
@@ -1531,7 +1531,7 @@ class Input : public IO {
document_iterator DocIterator;
std::vector<bool> BitValuesUsed;
HNode *CurrentNode = nullptr;
- bool ScalarMatchFound;
+ bool ScalarMatchFound = false;
};
///
More information about the llvm-commits
mailing list