OSDN Git Service

fix uninit member, thanks to Benjamin Kramer for identifying the bug.
authorChris Lattner <sabre@nondot.org>
Sun, 17 Jan 2010 19:24:35 +0000 (19:24 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 17 Jan 2010 19:24:35 +0000 (19:24 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@93691 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Target/Mangler.h

index 8caa623..e634e78 100644 (file)
@@ -49,7 +49,7 @@ private:
 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