summaryrefslogtreecommitdiffstats
path: root/llvm/tools/yaml2obj/yaml2elf.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/tools/yaml2obj/yaml2elf.cpp')
-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