diff options
author | axel <axel@91177308-0d34-0410-b5e6-96231b3b80d8> | 2012-09-17 14:20:57 +0000 |
---|---|---|
committer | axel <axel@91177308-0d34-0410-b5e6-96231b3b80d8> | 2012-09-17 14:20:57 +0000 |
commit | 01326fe21c8139d9d1738cd83f1929f78817237d (patch) | |
tree | 201909f47db287382b23073c83ecf72d1dbfb4c6 /utils | |
parent | 0fff65baed2b11c8dcb36889b487b7e71dcfbd4c (diff) |
Fix a few vars that can end up being used without initialization.
The cases where no initialization happens should still be checked for logic flaws.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@164032 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils')
-rw-r--r-- | utils/yaml2obj/yaml2obj.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/yaml2obj/yaml2obj.cpp b/utils/yaml2obj/yaml2obj.cpp index c3b3e5499c..4fc620f4ea 100644 --- a/utils/yaml2obj/yaml2obj.cpp +++ b/utils/yaml2obj/yaml2obj.cpp @@ -148,7 +148,7 @@ struct COFFParser { return false; } if (KeyValue == "Machine") { - uint16_t Machine; + uint16_t Machine = COFF::MT_Invalid; if (!getAs(Value, Machine)) { // It's not a raw number, try matching the string. StringRef ValueValue = Value->getValue(Storage); |