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

via cfe-commits cfe-commits at lists.llvm.org
Tue Dec 3 15:59:03 PST 2024


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-clang

Author: Eric Wang (Ptkyr)

<details>
<summary>Changes</summary>



---
Full diff: https://github.com/llvm/llvm-project/pull/118561.diff


1 Files Affected:

- (modified) clang/lib/AST/RecordLayoutBuilder.cpp (+1-1) 


``````````diff
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);

``````````

</details>


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


More information about the cfe-commits mailing list