]> granicus.if.org Git - clang/commitdiff
Fix typo.
authorFrancois Pichet <pichet2000@gmail.com>
Sun, 14 Aug 2011 14:28:49 +0000 (14:28 +0000)
committerFrancois Pichet <pichet2000@gmail.com>
Sun, 14 Aug 2011 14:28:49 +0000 (14:28 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@137585 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/AST/ASTContext.h
lib/AST/ASTContext.cpp

index e44302491f704c7039a11ce957f84bc792b5e126..ac32b1a526c056768b6a71a4a9d963c07d5ecb6a 100644 (file)
@@ -153,9 +153,9 @@ class ASTContext : public llvm::RefCountedBase<ASTContext> {
   llvm::DenseMap<const VarDecl*, Expr*> BlockVarCopyInits;
     
   /// \brief Mapping from class scope functions specialization to their
-  ///  templateS pattern.
+  ///  template patterns.
   llvm::DenseMap<const FunctionDecl*, FunctionDecl*>
-    ClassScopeSpecilizationPattern;
+    ClassScopeSpecializationPattern;
 
   /// \brief Representation of a "canonical" template template parameter that
   /// is used in canonical template names.
index d01e2a12aba5e8e4eb3e1a146df6e842ae970a00..1740eed4e06e082c3eaf205ee53e56fb8a59382f 100644 (file)
@@ -522,8 +522,8 @@ FunctionDecl *ASTContext::getClassScopeSpecializationPattern(
                                                      const FunctionDecl *FD){
   assert(FD && "Specialization is 0");
   llvm::DenseMap<const FunctionDecl*, FunctionDecl *>::const_iterator Pos
-    = ClassScopeSpecilizationPattern.find(FD);
-  if (Pos == ClassScopeSpecilizationPattern.end())
+    = ClassScopeSpecializationPattern.find(FD);
+  if (Pos == ClassScopeSpecializationPattern.end())
     return 0;
 
   return Pos->second;
@@ -533,7 +533,7 @@ void ASTContext::setClassScopeSpecializationPattern(FunctionDecl *FD,
                                         FunctionDecl *Pattern) {
   assert(FD && "Specialization is 0");
   assert(Pattern && "Class scope specialization pattern is 0");
-  ClassScopeSpecilizationPattern[FD] = Pattern;
+  ClassScopeSpecializationPattern[FD] = Pattern;
 }
 
 NamedDecl *
@@ -6458,5 +6458,5 @@ size_t ASTContext::getSideTableAllocatedMemory() const {
     + llvm::capacity_in_bytes(OverriddenMethods)
     + llvm::capacity_in_bytes(Types)
     + llvm::capacity_in_bytes(VariableArrayTypes)
-    + llvm::capacity_in_bytes(ClassScopeSpecilizationPattern);
+    + llvm::capacity_in_bytes(ClassScopeSpecializationPattern);
 }