[llvm] 7ac0c3b - [JITLink] Fix a typo in a comment.
Lang Hames via llvm-commits
llvm-commits at lists.llvm.org
Mon May 4 13:03:44 PDT 2020
Author: Lang Hames
Date: 2020-05-04T12:58:09-07:00
New Revision: 7ac0c3b47516ed858a4b4a609aef58069eb89ba9
URL: https://github.com/llvm/llvm-project/commit/7ac0c3b47516ed858a4b4a609aef58069eb89ba9
DIFF: https://github.com/llvm/llvm-project/commit/7ac0c3b47516ed858a4b4a609aef58069eb89ba9.diff
LOG: [JITLink] Fix a typo in a comment.
Thanks to @jcmac for pointing this out.
Added:
Modified:
llvm/lib/ExecutionEngine/JITLink/JITLinkGeneric.h
Removed:
################################################################################
diff --git a/llvm/lib/ExecutionEngine/JITLink/JITLinkGeneric.h b/llvm/lib/ExecutionEngine/JITLink/JITLinkGeneric.h
index 534590946493..87e5e8bbc98d 100644
--- a/llvm/lib/ExecutionEngine/JITLink/JITLinkGeneric.h
+++ b/llvm/lib/ExecutionEngine/JITLink/JITLinkGeneric.h
@@ -80,13 +80,13 @@ class JITLinkerBase {
// For debug dumping of the link graph.
virtual StringRef getEdgeKindName(Edge::Kind K) const = 0;
- // Alight a JITTargetAddress to conform with block alignment requirements.
+ // Align a JITTargetAddress to conform with block alignment requirements.
static JITTargetAddress alignToBlock(JITTargetAddress Addr, Block &B) {
uint64_t Delta = (B.getAlignmentOffset() - Addr) % B.getAlignment();
return Addr + Delta;
}
- // Alight a pointer to conform with block alignment requirements.
+ // Align a pointer to conform with block alignment requirements.
static char *alignToBlock(char *P, Block &B) {
uint64_t PAddr = static_cast<uint64_t>(reinterpret_cast<uintptr_t>(P));
uint64_t Delta = (B.getAlignmentOffset() - PAddr) % B.getAlignment();
More information about the llvm-commits
mailing list