Skip to content

Commit 1d494b9

Browse files
committed
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
1 parent d8660fa commit 1d494b9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/yaml2obj/yaml2elf.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ class NameToIdxMap {
7676
}
7777
/// asserts if name is not present in the map
7878
unsigned get(StringRef Name) const {
79-
unsigned Idx;
79+
unsigned Idx = 0;
8080
assert(!lookup(Name, Idx) && "Expected section not found in index");
8181
return Idx;
8282
}

0 commit comments

Comments
 (0)