diff options
author | Ed Schouten <ed@FreeBSD.org> | 2009-06-23 19:31:59 +0000 |
---|---|---|
committer | Ed Schouten <ed@FreeBSD.org> | 2009-06-23 19:31:59 +0000 |
commit | f76359690a7035ad21498f2ba6be6991d3b2032d (patch) | |
tree | 2db4127ea6c69f2548de6981658579fddd794448 /lib/VMCore/Mangler.cpp | |
parent | 0408e1d309a743aca4ed4592cf2c712a71537901 (diff) |
Diffstat (limited to 'lib/VMCore/Mangler.cpp')
-rw-r--r-- | lib/VMCore/Mangler.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/VMCore/Mangler.cpp b/lib/VMCore/Mangler.cpp index 1a68b890542f..6be06d22168a 100644 --- a/lib/VMCore/Mangler.cpp +++ b/lib/VMCore/Mangler.cpp @@ -165,10 +165,10 @@ std::string Mangler::getValueName(const GlobalValue *GV, const char * Suffix) { } else if (!GV->hasName()) { // Must mangle the global into a unique ID. unsigned TypeUniqueID = getTypeID(GV->getType()); - static uint32_t GlobalID = 0; + static int32_t GlobalID = 0; - unsigned OldID = GlobalID; - sys::AtomicIncrement(&GlobalID); + int32_t OldID = GlobalID; + sys::AtomicIncrement32(&GlobalID); Name = "__unnamed_" + utostr(TypeUniqueID) + "_" + utostr(OldID); } else { |