summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Pilgrim <llvm-dev@redking.me.uk>2019-11-04 17:16:52 +0000
committerSimon Pilgrim <llvm-dev@redking.me.uk>2019-11-04 17:24:34 +0000
commit692b42fbb0530b41d9575c12e13076d160ab12a5 (patch)
tree0a04d5625ef18068998e6b12bcefc11d51948e74
parent667223c3ed609794495ea30aaea6becd330f9459 (diff)
downloadbcm5719-llvm-692b42fbb0530b41d9575c12e13076d160ab12a5.tar.gz
bcm5719-llvm-692b42fbb0530b41d9575c12e13076d160ab12a5.zip
MCDwarfFile::DirIndex - fix uninitialized variable warning. NFCI.
-rw-r--r--llvm/include/llvm/MC/MCDwarf.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/include/llvm/MC/MCDwarf.h b/llvm/include/llvm/MC/MCDwarf.h
index a33b4b31bb0..b8ee585bb01 100644
--- a/llvm/include/llvm/MC/MCDwarf.h
+++ b/llvm/include/llvm/MC/MCDwarf.h
@@ -54,7 +54,7 @@ struct MCDwarfFile {
std::string Name;
// The index into the list of directory names for this file name.
- unsigned DirIndex;
+ unsigned DirIndex = 0;
/// The MD5 checksum, if there is one. Non-owning pointer to data allocated
/// in MCContext.
OpenPOWER on IntegriCloud