[llvm-commits] [llvm] r93691 - /llvm/trunk/include/llvm/Target/Mangler.h

Chris Lattner sabre at nondot.org
Sun Jan 17 11:24:35 PST 2010


Author: lattner
Date: Sun Jan 17 13:24:35 2010
New Revision: 93691

URL: http://llvm.org/viewvc/llvm-project?rev=93691&view=rev
Log:
fix uninit member, thanks to Benjamin Kramer for identifying the bug.

Modified:
    llvm/trunk/include/llvm/Target/Mangler.h

Modified: llvm/trunk/include/llvm/Target/Mangler.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Target/Mangler.h?rev=93691&r1=93690&r2=93691&view=diff

==============================================================================
--- llvm/trunk/include/llvm/Target/Mangler.h (original)
+++ llvm/trunk/include/llvm/Target/Mangler.h Sun Jan 17 13:24:35 2010
@@ -49,7 +49,7 @@
 public:
   // Mangler ctor - if a prefix is specified, it will be prepended onto all
   // symbols.
-  Mangler(const MCAsmInfo &mai) : MAI(mai) {}
+  Mangler(const MCAsmInfo &mai) : MAI(mai), NextAnonGlobalID(0) {}
 
   /// getNameWithPrefix - Fill OutName with the name of the appropriate prefix
   /// and the specified global variable's name.  If the global variable doesn't





More information about the llvm-commits mailing list