From 692b42fbb0530b41d9575c12e13076d160ab12a5 Mon Sep 17 00:00:00 2001 From: Simon Pilgrim Date: Mon, 4 Nov 2019 17:16:52 +0000 Subject: [PATCH] MCDwarfFile::DirIndex - fix uninitialized variable warning. NFCI. --- llvm/include/llvm/MC/MCDwarf.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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.