[llvm] e15ade4 - Revert rGa3c715e9788d829031989b0a5ea4eb43c7288be9 "Twine - fix uninitialized variable warnings. NFCI."

Simon Pilgrim via llvm-commits llvm-commits at lists.llvm.org
Fri Mar 27 04:45:02 PDT 2020


Author: Simon Pilgrim
Date: 2020-03-27T11:44:04Z
New Revision: e15ade47814ee07581f58e1c7443902814140632

URL: https://github.com/llvm/llvm-project/commit/e15ade47814ee07581f58e1c7443902814140632
DIFF: https://github.com/llvm/llvm-project/commit/e15ade47814ee07581f58e1c7443902814140632.diff

LOG: Revert rGa3c715e9788d829031989b0a5ea4eb43c7288be9 "Twine - fix uninitialized variable warnings. NFCI."

@dblaikie noticed that this may interfere with msan analysis

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 2dc7486c924f..4140c22aad3d 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 = {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;


        


More information about the llvm-commits mailing list