[llvm] [DebugInfo] SizeInBits and AlignInBits are erroneously swapped (PR #100402)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 24 08:17:34 PDT 2024
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-llvm-ir
Author: AtariDreams (AtariDreams)
<details>
<summary>Changes</summary>
They are being passed in the wrong order.
---
Full diff: https://github.com/llvm/llvm-project/pull/100402.diff
1 Files Affected:
- (modified) llvm/lib/IR/DebugInfo.cpp (+1-1)
``````````diff
diff --git a/llvm/lib/IR/DebugInfo.cpp b/llvm/lib/IR/DebugInfo.cpp
index 7fa1f9696d43b..560d2e194c6d1 100644
--- a/llvm/lib/IR/DebugInfo.cpp
+++ b/llvm/lib/IR/DebugInfo.cpp
@@ -1495,7 +1495,7 @@ LLVMDIBuilderCreateMemberPointerType(LLVMDIBuilderRef Builder,
LLVMDIFlags Flags) {
return wrap(unwrap(Builder)->createMemberPointerType(
unwrapDI<DIType>(PointeeType),
- unwrapDI<DIType>(ClassType), AlignInBits, SizeInBits,
+ unwrapDI<DIType>(ClassType), SizeInBits, AlignInBits,
map_from_llvmDIFlags(Flags)));
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/100402
More information about the llvm-commits
mailing list