From: Benjamin Kramer Date: Mon, 18 Jan 2010 14:39:20 +0000 (+0000) Subject: Unnamed symbol index should be >= 1. This was lost during the mangler refactoring... X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=971fd79067babb76619c8a0360166669df3a6863;p=oota-llvm.git Unnamed symbol index should be >= 1. This was lost during the mangler refactoring. Fixes PR6067. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@93724 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/Target/Mangler.h b/include/llvm/Target/Mangler.h index c5ac6768fd6..04de4e9610e 100644 --- a/include/llvm/Target/Mangler.h +++ b/include/llvm/Target/Mangler.h @@ -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), NextAnonGlobalID(0) {} + Mangler(const MCAsmInfo &mai) : MAI(mai), NextAnonGlobalID(1) {} /// getNameWithPrefix - Fill OutName with the name of the appropriate prefix /// and the specified global variable's name. If the global variable doesn't