diff options
author | Dan Gohman <gohman@apple.com> | 2008-02-20 16:44:09 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2008-02-20 16:44:09 +0000 |
commit | 360c86aed5ca474738bdaf5526b39e3aa3ac1803 (patch) | |
tree | 21b9a51dc97188191f6fc2c80a422e8413332ab0 /llvm/lib/Support/Annotation.cpp | |
parent | d0ff91dac52878aebea3cb77e037e1c31f1b341b (diff) | |
download | bcm5719-llvm-360c86aed5ca474738bdaf5526b39e3aa3ac1803.tar.gz bcm5719-llvm-360c86aed5ca474738bdaf5526b39e3aa3ac1803.zip |
Add explicit keywords.
llvm-svn: 47382
Diffstat (limited to 'llvm/lib/Support/Annotation.cpp')
-rw-r--r-- | llvm/lib/Support/Annotation.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Support/Annotation.cpp b/llvm/lib/Support/Annotation.cpp index 9d5e5457d9a..3ecc42f782e 100644 --- a/llvm/lib/Support/Annotation.cpp +++ b/llvm/lib/Support/Annotation.cpp @@ -57,9 +57,9 @@ AnnotationID AnnotationManager::getID(const std::string &Name) { // Name -> ID IDMapType::iterator I = IDMap->find(Name); if (I == IDMap->end()) { (*IDMap)[Name] = IDCounter++; // Add a new element - return IDCounter-1; + return AnnotationID(IDCounter-1); } - return I->second; + return AnnotationID(I->second); } // getID - Name -> ID + registration of a factory function for demand driven |