[llvm] a3c715e - Twine - fix uninitialized variable warnings. NFCI.
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Sun Nov 10 03:22:18 PST 2019
Author: Simon Pilgrim
Date: 2019-11-10T11:21:43Z
New Revision: a3c715e9788d829031989b0a5ea4eb43c7288be9
URL: https://github.com/llvm/llvm-project/commit/a3c715e9788d829031989b0a5ea4eb43c7288be9
DIFF: https://github.com/llvm/llvm-project/commit/a3c715e9788d829031989b0a5ea4eb43c7288be9.diff
LOG: Twine - fix uninitialized variable warnings. NFCI.
Added:
Modified:
llvm/include/llvm/ADT/Twine.h
Removed:
################################################################################
diff --git a/llvm/include/llvm/ADT/Twine.h b/llvm/include/llvm/ADT/Twine.h
index 4140c22aad3d..2dc7486c924f 100644
--- a/llvm/include/llvm/ADT/Twine.h
+++ b/llvm/include/llvm/ADT/Twine.h
@@ -153,11 +153,11 @@ namespace llvm {
/// LHS - The prefix in the concatenation, which may be uninitialized for
/// Null or Empty kinds.
- Child LHS;
+ Child LHS = {0};
/// RHS - The suffix in the concatenation, which may be uninitialized for
/// Null or Empty kinds.
- Child RHS;
+ Child RHS = {0};
/// LHSKind - The NodeKind of the left hand side, \see getLHSKind().
NodeKind LHSKind = EmptyKind;
More information about the llvm-commits
mailing list