diff options
author | Dave Lee <davelee.com@gmail.com> | 2017-11-07 22:33:07 +0000 |
---|---|---|
committer | Dave Lee <davelee.com@gmail.com> | 2017-11-07 22:33:07 +0000 |
commit | 1d494b9e82261f94791832d4e202bc3de2c66374 (patch) | |
tree | cd8f13124e71df8b23b8b62e0fa8e9758f9f60f3 | |
parent | d8660fa5dc39cff9877b4f885d7a4d10aad20a65 (diff) | |
download | llvm-1d494b9e82261f94791832d4e202bc3de2c66374.tar.gz |
Fix build bots after r317622
Example build failure: http://lab.llvm.org:8011/builders/lld-x86_64-darwin13/builds/14660
TIL that the warning flags for local builds are loose compared to what build
servers use.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@317626 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | tools/yaml2obj/yaml2elf.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/yaml2obj/yaml2elf.cpp b/tools/yaml2obj/yaml2elf.cpp index 1792b1288829..ae8dd15f5967 100644 --- a/tools/yaml2obj/yaml2elf.cpp +++ b/tools/yaml2obj/yaml2elf.cpp @@ -76,7 +76,7 @@ public: } /// asserts if name is not present in the map unsigned get(StringRef Name) const { - unsigned Idx; + unsigned Idx = 0; assert(!lookup(Name, Idx) && "Expected section not found in index"); return Idx; } |