Revert rGa3c715e9788d829031989b0a5ea4eb43c7288be9 "Twine - fix uninitialized variable...
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Fri, 27 Mar 2020 10:49:36 +0000 (10:49 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Fri, 27 Mar 2020 11:44:04 +0000 (11:44 +0000)
@dblaikie noticed that this may interfere with msan analysis

llvm/include/llvm/ADT/Twine.h

index 2dc7486..4140c22 100644 (file)
@@ -153,11 +153,11 @@ namespace llvm {
 
     /// LHS - The prefix in the concatenation, which may be uninitialized for
     /// Null or Empty kinds.
-    Child LHS = {0};
+    Child LHS;
 
     /// RHS - The suffix in the concatenation, which may be uninitialized for
     /// Null or Empty kinds.
-    Child RHS = {0};
+    Child RHS;
 
     /// LHSKind - The NodeKind of the left hand side, \see getLHSKind().
     NodeKind LHSKind = EmptyKind;