[llvm] [DebugInfo] SizeInBits and AlignInBits are erroneously swapped (PR #100402)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 24 08:21:15 PDT 2024
github-actions[bot] wrote:
<!--LLVM CODE FORMAT COMMENT: {clang-format}-->
:warning: C/C++ code formatter, clang-format found issues in your code. :warning:
<details>
<summary>
You can test this locally with the following command:
</summary>
``````````bash
git-clang-format --diff 338c35aabfbede9ba10a4f48a13e63f37d6f8c7c a8715403841fc14372cb37d2b06b8b4a0bdb1e30 --extensions cpp -- llvm/lib/IR/DebugInfo.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/IR/DebugInfo.cpp b/llvm/lib/IR/DebugInfo.cpp
index 560d2e194c..ee29c051e4 100644
--- a/llvm/lib/IR/DebugInfo.cpp
+++ b/llvm/lib/IR/DebugInfo.cpp
@@ -1494,9 +1494,8 @@ LLVMDIBuilderCreateMemberPointerType(LLVMDIBuilderRef Builder,
uint32_t AlignInBits,
LLVMDIFlags Flags) {
return wrap(unwrap(Builder)->createMemberPointerType(
- unwrapDI<DIType>(PointeeType),
- unwrapDI<DIType>(ClassType), SizeInBits, AlignInBits,
- map_from_llvmDIFlags(Flags)));
+ unwrapDI<DIType>(PointeeType), unwrapDI<DIType>(ClassType), SizeInBits,
+ AlignInBits, map_from_llvmDIFlags(Flags)));
}
LLVMMetadataRef
``````````
</details>
https://github.com/llvm/llvm-project/pull/100402
More information about the llvm-commits
mailing list