Skip to content

Commit e73e495

Browse files
committed
[NFC] Fix typo unalighed_decl_id_t
It should be unalignhed_decl_id_t
1 parent 5b14624 commit e73e495

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

clang/include/clang/Serialization/ASTReader.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -601,11 +601,11 @@ class ASTReader
601601

602602
/// An array of lexical contents of a declaration context, as a sequence of
603603
/// Decl::Kind, DeclID pairs.
604-
using unalighed_decl_id_t =
604+
using unaligned_decl_id_t =
605605
llvm::support::detail::packed_endian_specific_integral<
606606
serialization::DeclID, llvm::endianness::native,
607607
llvm::support::unaligned>;
608-
using LexicalContents = ArrayRef<unalighed_decl_id_t>;
608+
using LexicalContents = ArrayRef<unaligned_decl_id_t>;
609609

610610
/// Map from a DeclContext to its lexical contents.
611611
llvm::DenseMap<const DeclContext*, std::pair<ModuleFile*, LexicalContents>>

clang/lib/Serialization/ASTReader.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1264,7 +1264,7 @@ bool ASTReader::ReadLexicalDeclContextStorage(ModuleFile &M,
12641264
if (!Lex.first) {
12651265
Lex = std::make_pair(
12661266
&M, llvm::ArrayRef(
1267-
reinterpret_cast<const unalighed_decl_id_t *>(Blob.data()),
1267+
reinterpret_cast<const unaligned_decl_id_t *>(Blob.data()),
12681268
Blob.size() / sizeof(DeclID)));
12691269
}
12701270
DC->setHasExternalLexicalStorage(true);
@@ -3401,7 +3401,7 @@ llvm::Error ASTReader::ReadASTBlock(ModuleFile &F,
34013401
case TU_UPDATE_LEXICAL: {
34023402
DeclContext *TU = ContextObj->getTranslationUnitDecl();
34033403
LexicalContents Contents(
3404-
reinterpret_cast<const unalighed_decl_id_t *>(Blob.data()),
3404+
reinterpret_cast<const unaligned_decl_id_t *>(Blob.data()),
34053405
static_cast<unsigned int>(Blob.size() / sizeof(DeclID)));
34063406
TULexicalDecls.push_back(std::make_pair(&F, Contents));
34073407
TU->setHasExternalLexicalStorage(true);

0 commit comments

Comments
 (0)