/// 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,
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;