aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan D. Turner <jonathan.d.turner@gmail.com>2011-08-03 17:36:09 +0000
committerJonathan D. Turner <jonathan.d.turner@gmail.com>2011-08-03 17:36:09 +0000
commit43fd9388d374f29e908e611a686c6137553efa79 (patch)
tree669dcc861f01cb9342daecffdb0e9522870302bb
parentb3f8c244a0f193229a6fdbcea1a3615aff5b90dc (diff)
Fix a few typos
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@136792 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/clang/Serialization/ASTReader.h4
-rw-r--r--lib/Serialization/ASTReader.cpp2
2 files changed, 3 insertions, 3 deletions
diff --git a/include/clang/Serialization/ASTReader.h b/include/clang/Serialization/ASTReader.h
index 2851028dc9..42843e1ac3 100644
--- a/include/clang/Serialization/ASTReader.h
+++ b/include/clang/Serialization/ASTReader.h
@@ -1250,12 +1250,12 @@ public:
Decl *GetDecl(serialization::DeclID ID);
virtual Decl *GetExternalDecl(uint32_t ID);
- /// \brief Reads a declaration with the given local ID in the give module.
+ /// \brief Reads a declaration with the given local ID in the given module.
Decl *GetLocalDecl(Module &F, uint32_t LocalID) {
return GetDecl(getGlobalDeclID(F, LocalID));
}
- /// \brief Reads a declaration with the given local ID in the give module.
+ /// \brief Reads a declaration with the given local ID in the given module.
///
/// \returns The requested declaration, casted to the given return type.
template<typename T>
diff --git a/lib/Serialization/ASTReader.cpp b/lib/Serialization/ASTReader.cpp
index 14094febe5..291044f08d 100644
--- a/lib/Serialization/ASTReader.cpp
+++ b/lib/Serialization/ASTReader.cpp
@@ -2937,7 +2937,7 @@ void ASTReader::InitializeContext(ASTContext &Ctx) {
if (unsigned Jmp_buf = SpecialTypes[SPECIAL_TYPE_jmp_buf]) {
QualType Jmp_bufType = GetType(Jmp_buf);
if (Jmp_bufType.isNull()) {
- Error("jmp_bug type is NULL");
+ Error("jmp_buf type is NULL");
return;
}
if (const TypedefType *Typedef = Jmp_bufType->getAs<TypedefType>())