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

Eric Wang via cfe-commits cfe-commits at lists.llvm.org
Tue Dec 3 15:58:15 PST 2024


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

None

>From 26596a6be92de4a5f2c94cf12e05d37739f47749 Mon Sep 17 00:00:00 2001
From: Eric Wang <48936088+Ptkyr at users.noreply.github.com>
Date: Tue, 3 Dec 2024 18:57:28 -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