Browse Source

[NFC] typo

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@359524 91177308-0d34-0410-b5e6-96231b3b80d8
JF Bastien 6 years ago
parent
commit
753d85a17f
1 changed files with 2 additions and 2 deletions
  1. 2 2
      lib/Sema/Sema.cpp

+ 2 - 2
lib/Sema/Sema.cpp

@@ -1629,7 +1629,7 @@ void Sema::RecordParsingTemplateParameterDepth(unsigned Depth) {
 }
 }
 
 
 // Check that the type of the VarDecl has an accessible copy constructor and
 // Check that the type of the VarDecl has an accessible copy constructor and
-// resolve its destructor's exception spefication.
+// resolve its destructor's exception specification.
 static void checkEscapingByref(VarDecl *VD, Sema &S) {
 static void checkEscapingByref(VarDecl *VD, Sema &S) {
   QualType T = VD->getType();
   QualType T = VD->getType();
   EnterExpressionEvaluationContext scope(
   EnterExpressionEvaluationContext scope(
@@ -1646,7 +1646,7 @@ static void checkEscapingByref(VarDecl *VD, Sema &S) {
     S.Context.setBlockVarCopyInit(VD, Init, S.canThrow(Init));
     S.Context.setBlockVarCopyInit(VD, Init, S.canThrow(Init));
   }
   }
 
 
-  // The destructor's exception spefication is needed when IRGen generates
+  // The destructor's exception specification is needed when IRGen generates
   // block copy/destroy functions. Resolve it here.
   // block copy/destroy functions. Resolve it here.
   if (const CXXRecordDecl *RD = T->getAsCXXRecordDecl())
   if (const CXXRecordDecl *RD = T->getAsCXXRecordDecl())
     if (CXXDestructorDecl *DD = RD->getDestructor()) {
     if (CXXDestructorDecl *DD = RD->getDestructor()) {