From: Francois Pichet Date: Sun, 14 Aug 2011 14:28:49 +0000 (+0000) Subject: Fix typo. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0d95f0d7b81110f77e99e833f766d19be7b7e072;p=clang Fix typo. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@137585 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/AST/ASTContext.h b/include/clang/AST/ASTContext.h index e44302491f..ac32b1a526 100644 --- a/include/clang/AST/ASTContext.h +++ b/include/clang/AST/ASTContext.h @@ -153,9 +153,9 @@ class ASTContext : public llvm::RefCountedBase { llvm::DenseMap BlockVarCopyInits; /// \brief Mapping from class scope functions specialization to their - /// templateS pattern. + /// template patterns. llvm::DenseMap - ClassScopeSpecilizationPattern; + ClassScopeSpecializationPattern; /// \brief Representation of a "canonical" template template parameter that /// is used in canonical template names. diff --git a/lib/AST/ASTContext.cpp b/lib/AST/ASTContext.cpp index d01e2a12ab..1740eed4e0 100644 --- a/lib/AST/ASTContext.cpp +++ b/lib/AST/ASTContext.cpp @@ -522,8 +522,8 @@ FunctionDecl *ASTContext::getClassScopeSpecializationPattern( const FunctionDecl *FD){ assert(FD && "Specialization is 0"); llvm::DenseMap::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); }