]> granicus.if.org Git - clang/commitdiff
Fix typos
authorAlp Toker <alp@nuanti.com>
Mon, 16 Jun 2014 14:23:44 +0000 (14:23 +0000)
committerAlp Toker <alp@nuanti.com>
Mon, 16 Jun 2014 14:23:44 +0000 (14:23 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@211025 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Basic/SourceManager.h
lib/CodeGen/CGExprCXX.cpp

index bea4890ca43c0ac724a48f4b8a4ad5b1fe0351a9..585d13855e04472d245026fb9001a734db96a58d 100644 (file)
@@ -1287,7 +1287,7 @@ public:
   /// an expansion location, not at the spelling location.
   ///
   /// \returns The presumed location of the specified SourceLocation. If the
-  /// presumed location cannot be calculate (e.g., because \p Loc is invalid
+  /// presumed location cannot be calculated (e.g., because \p Loc is invalid
   /// or the file containing \p Loc has changed on disk), returns an invalid
   /// presumed location.
   PresumedLoc getPresumedLoc(SourceLocation Loc,
index 268f4aabfda3c15e63c357c32746dc698b49c441..394ba1d8f77004fb63de119984f5fb5653864da2 100644 (file)
@@ -1913,7 +1913,7 @@ MSDynamicCastBuilder::MSDynamicCastBuilder(CodeGenFunction &CGF,
   SrcTy = IsPtrCast ? SrcTy->castAs<PointerType>()->getPointeeType() : SrcTy;
   SrcDecl = SrcTy->getAsCXXRecordDecl();
   // If we don't need a base adjustment, we don't need a SrcDecl so clear it
-  // here.  Later we use the existance of the SrcDecl to determine the need for
+  // here.  Later we use the existence of the SrcDecl to determine the need for
   // a base adjustment.
   if (CGF.getContext().getASTRecordLayout(SrcDecl).hasExtendableVFPtr())
     SrcDecl = nullptr;