summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-02-11 03:29:16 +0000
committerChris Lattner <sabre@nondot.org>2004-02-11 03:29:16 +0000
commit82a5ff4c549fd472cbcc5c880048ce4e4488a0f3 (patch)
treea26d64b0774d989287a8da4013c3194dc0876e80
parent6565043120ed6d89514cebc4fc03f908cb397378 (diff)
downloadllvm-82a5ff4c549fd472cbcc5c880048ce4e4488a0f3.tar.gz
llvm-82a5ff4c549fd472cbcc5c880048ce4e4488a0f3.tar.bz2
llvm-82a5ff4c549fd472cbcc5c880048ce4e4488a0f3.tar.xz
Initialize the count instance variable.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11305 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Support/Mangler.cpp2
-rw-r--r--lib/VMCore/Mangler.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/Support/Mangler.cpp b/lib/Support/Mangler.cpp
index 699ecd1a65..336066ed86 100644
--- a/lib/Support/Mangler.cpp
+++ b/lib/Support/Mangler.cpp
@@ -81,7 +81,7 @@ std::string Mangler::getValueName(const Value *V) {
}
Mangler::Mangler(Module &m, bool addUnderscorePrefix)
- : M(m), AddUnderscorePrefix(addUnderscorePrefix) {
+ : M(m), AddUnderscorePrefix(addUnderscorePrefix), Count(0) {
// Calculate which global values have names that will collide when we throw
// away type information.
std::set<std::string> FoundNames;
diff --git a/lib/VMCore/Mangler.cpp b/lib/VMCore/Mangler.cpp
index 699ecd1a65..336066ed86 100644
--- a/lib/VMCore/Mangler.cpp
+++ b/lib/VMCore/Mangler.cpp
@@ -81,7 +81,7 @@ std::string Mangler::getValueName(const Value *V) {
}
Mangler::Mangler(Module &m, bool addUnderscorePrefix)
- : M(m), AddUnderscorePrefix(addUnderscorePrefix) {
+ : M(m), AddUnderscorePrefix(addUnderscorePrefix), Count(0) {
// Calculate which global values have names that will collide when we throw
// away type information.
std::set<std::string> FoundNames;