[llvm] f6fa57c - ReplacementItem - fix uninitialized variable warning. NFCI.
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Fri Nov 8 06:47:10 PST 2019
Author: Simon Pilgrim
Date: 2019-11-08T14:46:22Z
New Revision: f6fa57cf5751fdd506dcd82fd8a170b2543798f7
URL: https://github.com/llvm/llvm-project/commit/f6fa57cf5751fdd506dcd82fd8a170b2543798f7
DIFF: https://github.com/llvm/llvm-project/commit/f6fa57cf5751fdd506dcd82fd8a170b2543798f7.diff
LOG: ReplacementItem - fix uninitialized variable warning. NFCI.
Added:
Modified:
llvm/include/llvm/Support/FormatVariadic.h
Removed:
################################################################################
diff --git a/llvm/include/llvm/Support/FormatVariadic.h b/llvm/include/llvm/Support/FormatVariadic.h
index 5bbda9dd626e..86a9d30cc138 100644
--- a/llvm/include/llvm/Support/FormatVariadic.h
+++ b/llvm/include/llvm/Support/FormatVariadic.h
@@ -57,7 +57,7 @@ struct ReplacementItem {
size_t Index = 0;
size_t Align = 0;
AlignStyle Where = AlignStyle::Right;
- char Pad;
+ char Pad = 0;
StringRef Options;
};
More information about the llvm-commits
mailing list