Correct cut-and-paste error in doxygen comment for newly introduced
getTypeAlignInChars().
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@94553 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/include/clang/AST/ASTContext.h b/include/clang/AST/ASTContext.h
index 0462de3..8e91354 100644
--- a/include/clang/AST/ASTContext.h
+++ b/include/clang/AST/ASTContext.h
@@ -835,7 +835,7 @@
return getTypeInfo(T).second;
}
- /// getTypeAlign - Return the ABI-specified alignment of a type, in
+ /// getTypeAlignInChars - Return the ABI-specified alignment of a type, in
/// characters. This method does not work on incomplete types.
CharUnits getTypeAlignInChars(QualType T);
CharUnits getTypeAlignInChars(const Type *T);
diff --git a/lib/AST/ASTContext.cpp b/lib/AST/ASTContext.cpp
index e5c4381..c2eddcb 100644
--- a/lib/AST/ASTContext.cpp
+++ b/lib/AST/ASTContext.cpp
@@ -820,7 +820,7 @@
return CharUnits::fromQuantity(getTypeSize(T) / getCharWidth());
}
-/// getTypeAlign - Return the ABI-specified alignment of a type, in
+/// getTypeAlignInChars - Return the ABI-specified alignment of a type, in
/// characters. This method does not work on incomplete types.
CharUnits ASTContext::getTypeAlignInChars(QualType T) {
return CharUnits::fromQuantity(getTypeAlign(T) / getCharWidth());