[llvm] 692b42f - MCDwarfFile::DirIndex - fix uninitialized variable warning. NFCI.
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Mon Nov 4 09:31:32 PST 2019
Author: Simon Pilgrim
Date: 2019-11-04T17:24:34Z
New Revision: 692b42fbb0530b41d9575c12e13076d160ab12a5
URL: https://github.com/llvm/llvm-project/commit/692b42fbb0530b41d9575c12e13076d160ab12a5
DIFF: https://github.com/llvm/llvm-project/commit/692b42fbb0530b41d9575c12e13076d160ab12a5.diff
LOG: MCDwarfFile::DirIndex - fix uninitialized variable warning. NFCI.
Added:
Modified:
llvm/include/llvm/MC/MCDwarf.h
Removed:
################################################################################
diff --git a/llvm/include/llvm/MC/MCDwarf.h b/llvm/include/llvm/MC/MCDwarf.h
index a33b4b31bb06..b8ee585bb017 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.
More information about the llvm-commits
mailing list