summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Lee <davelee.com@gmail.com>2017-11-07 22:33:07 +0000
committerDave Lee <davelee.com@gmail.com>2017-11-07 22:33:07 +0000
commitc227512ce4c2092f89e119d5fc429086bc466fe3 (patch)
tree9b8b339a0481dee7c0c769fbb9d93616ceae9c26
parent03e4ae42d56ac20c68e19c4f68896204ac73b2d3 (diff)
downloadbcm5719-llvm-c227512ce4c2092f89e119d5fc429086bc466fe3.tar.gz
bcm5719-llvm-c227512ce4c2092f89e119d5fc429086bc466fe3.zip
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. llvm-svn: 317626
-rw-r--r--llvm/tools/yaml2obj/yaml2elf.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/tools/yaml2obj/yaml2elf.cpp b/llvm/tools/yaml2obj/yaml2elf.cpp
index 1792b128882..ae8dd15f596 100644
--- a/llvm/tools/yaml2obj/yaml2elf.cpp
+++ b/llvm/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;
}
OpenPOWER on IntegriCloud