[llvm] [DebugInfo] SizeInBits and AlignInBits are erroneously swapped (PR #100402)

via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 24 08:17:00 PDT 2024


https://github.com/AtariDreams created https://github.com/llvm/llvm-project/pull/100402

They are being passed in the wrong order.

>From a8715403841fc14372cb37d2b06b8b4a0bdb1e30 Mon Sep 17 00:00:00 2001
From: AtariDreams <gfunni234 at gmail.com>
Date: Wed, 24 Jul 2024 11:16:47 -0400
Subject: [PATCH] [DebugInfo] SizeInBits and AlignInBits are erroneously
 swapped

They are being passed in the wrong order.
---
 llvm/lib/IR/DebugInfo.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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)));
 }
 



More information about the llvm-commits mailing list