File tree 2 files changed +4
-4
lines changed
include/clang/Serialization
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -601,11 +601,11 @@ class ASTReader
601
601
602
602
// / An array of lexical contents of a declaration context, as a sequence of
603
603
// / Decl::Kind, DeclID pairs.
604
- using unalighed_decl_id_t =
604
+ using unaligned_decl_id_t =
605
605
llvm::support::detail::packed_endian_specific_integral<
606
606
serialization::DeclID, llvm::endianness::native,
607
607
llvm::support::unaligned>;
608
- using LexicalContents = ArrayRef<unalighed_decl_id_t >;
608
+ using LexicalContents = ArrayRef<unaligned_decl_id_t >;
609
609
610
610
// / Map from a DeclContext to its lexical contents.
611
611
llvm::DenseMap<const DeclContext*, std::pair<ModuleFile*, LexicalContents>>
Original file line number Diff line number Diff line change @@ -1264,7 +1264,7 @@ bool ASTReader::ReadLexicalDeclContextStorage(ModuleFile &M,
1264
1264
if (!Lex.first ) {
1265
1265
Lex = std::make_pair (
1266
1266
&M, llvm::ArrayRef (
1267
- reinterpret_cast <const unalighed_decl_id_t *>(Blob.data ()),
1267
+ reinterpret_cast <const unaligned_decl_id_t *>(Blob.data ()),
1268
1268
Blob.size () / sizeof (DeclID)));
1269
1269
}
1270
1270
DC->setHasExternalLexicalStorage (true );
@@ -3401,7 +3401,7 @@ llvm::Error ASTReader::ReadASTBlock(ModuleFile &F,
3401
3401
case TU_UPDATE_LEXICAL: {
3402
3402
DeclContext *TU = ContextObj->getTranslationUnitDecl ();
3403
3403
LexicalContents Contents (
3404
- reinterpret_cast <const unalighed_decl_id_t *>(Blob.data ()),
3404
+ reinterpret_cast <const unaligned_decl_id_t *>(Blob.data ()),
3405
3405
static_cast <unsigned int >(Blob.size () / sizeof (DeclID)));
3406
3406
TULexicalDecls.push_back (std::make_pair (&F, Contents));
3407
3407
TU->setHasExternalLexicalStorage (true );
You can’t perform that action at this time.
0 commit comments