[clang] [Clang] Fix typo in ItaniumRecordLayoutBuilder API (PR #118563)

Eric Wang via cfe-commits cfe-commits at lists.llvm.org
Tue Dec 3 16:04:45 PST 2024


https://github.com/Ptkyr created https://github.com/llvm/llvm-project/pull/118563

None

>From 6d723faf919c3fe3788700a5fc639ebd856aa6d7 Mon Sep 17 00:00:00 2001
From: Eric Wang <48936088+Ptkyr at users.noreply.github.com>
Date: Tue, 3 Dec 2024 19:04:14 -0500
Subject: [PATCH] [Clang] Fix typo in ItaniumRecordLayoutBuilder API

---
 clang/lib/AST/RecordLayoutBuilder.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/clang/lib/AST/RecordLayoutBuilder.cpp b/clang/lib/AST/RecordLayoutBuilder.cpp
index b1b13b66a5e504..f749d3a705fc99 100644
--- a/clang/lib/AST/RecordLayoutBuilder.cpp
+++ b/clang/lib/AST/RecordLayoutBuilder.cpp
@@ -818,7 +818,7 @@ class ItaniumRecordLayoutBuilder {
   void setSize(CharUnits NewSize) { Size = Context.toBits(NewSize); }
   void setSize(uint64_t NewSize) { Size = NewSize; }
 
-  CharUnits getAligment() const { return Alignment; }
+  CharUnits getAlignment() const { return Alignment; }
 
   CharUnits getDataSize() const {
     assert(DataSize % Context.getCharWidth() == 0);



More information about the cfe-commits mailing list