summaryrefslogtreecommitdiffstats
path: root/clang
diff options
context:
space:
mode:
authorAlp Toker <alp@nuanti.com>2014-06-16 14:23:44 +0000
committerAlp Toker <alp@nuanti.com>2014-06-16 14:23:44 +0000
commit233b37283101e0aecba65f3e6faa342a5b533e3a (patch)
tree263a7fdff212b5d55a25b517f8836501347249c9 /clang
parent0d0489cea6d940cba809e5895808ebfbc0424e3a (diff)
downloadbcm5719-llvm-233b37283101e0aecba65f3e6faa342a5b533e3a.tar.gz
bcm5719-llvm-233b37283101e0aecba65f3e6faa342a5b533e3a.zip
Fix typos
llvm-svn: 211025
Diffstat (limited to 'clang')
-rw-r--r--clang/include/clang/Basic/SourceManager.h2
-rw-r--r--clang/lib/CodeGen/CGExprCXX.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/clang/include/clang/Basic/SourceManager.h b/clang/include/clang/Basic/SourceManager.h
index bea4890ca43..585d13855e0 100644
--- a/clang/include/clang/Basic/SourceManager.h
+++ b/clang/include/clang/Basic/SourceManager.h
@@ -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,
diff --git a/clang/lib/CodeGen/CGExprCXX.cpp b/clang/lib/CodeGen/CGExprCXX.cpp
index 268f4aabfda..394ba1d8f77 100644
--- a/clang/lib/CodeGen/CGExprCXX.cpp
+++ b/clang/lib/CodeGen/CGExprCXX.cpp
@@ -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;
OpenPOWER on IntegriCloud