diff options
author | ed <ed@FreeBSD.org> | 2009-06-23 19:31:59 +0000 |
---|---|---|
committer | ed <ed@FreeBSD.org> | 2009-06-23 19:31:59 +0000 |
commit | 5c1b5c146f3df07c75174aff06c3bb0968f6857e (patch) | |
tree | 2db4127ea6c69f2548de6981658579fddd794448 /lib/VMCore | |
parent | 4d74f68bdcfeab629970a41b69b96ac709b08a2b (diff) | |
download | FreeBSD-src-5c1b5c146f3df07c75174aff06c3bb0968f6857e.zip FreeBSD-src-5c1b5c146f3df07c75174aff06c3bb0968f6857e.tar.gz |
Import LLVM r73984.
It seems I keep importing sources at very unlucky moments. Let's see
what this revision of LLVM does.
Diffstat (limited to 'lib/VMCore')
-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 1a68b89..6be06d22 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 { |