summaryrefslogtreecommitdiffstats
path: root/lib/Support
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2008-02-20 16:44:09 +0000
committerDan Gohman <gohman@apple.com>2008-02-20 16:44:09 +0000
commitb5660dc8223bd5eb3d21d9855692617fcdec5663 (patch)
treeefe20b5ad260ba442785f90afb2a408febd04e71 /lib/Support
parent948d8eadec92cc5f31f196de41dd6dfe8579a0c6 (diff)
downloadexternal_llvm-b5660dc8223bd5eb3d21d9855692617fcdec5663.zip
external_llvm-b5660dc8223bd5eb3d21d9855692617fcdec5663.tar.gz
external_llvm-b5660dc8223bd5eb3d21d9855692617fcdec5663.tar.bz2
Add explicit keywords.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47382 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Support')
-rw-r--r--lib/Support/Annotation.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Support/Annotation.cpp b/lib/Support/Annotation.cpp
index 9d5e545..3ecc42f 100644
--- a/lib/Support/Annotation.cpp
+++ b/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