aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Support/ProgramStack.cpp
diff options
context:
space:
mode:
authorAndres-Salamanca <andrealebarbaritos@gmail.com>2025-07-18 16:13:34 -0500
committerGitHub <noreply@github.com>2025-07-18 16:13:34 -0500
commitb02787d33f24d83f1d5814c578b7b0fce7156382 (patch)
tree814531fb048888a642e1157c721a335d1509e9ad /llvm/lib/Support/ProgramStack.cpp
parentd63ab5467dcae0492e2f4def336ddbb73ce10dc5 (diff)
downloadllvm-b02787d33f24d83f1d5814c578b7b0fce7156382.zip
llvm-b02787d33f24d83f1d5814c578b7b0fce7156382.tar.gz
llvm-b02787d33f24d83f1d5814c578b7b0fce7156382.tar.bz2
[CIR] Fix alignment when lowering set/get bitfield operations (#148999)
This PR fixes incorrect alignment when lowering `set` and `getBitField` operations to LLVM IR. The issue occurred because during lowering, the function was being called with an alignment of 0, which caused it to default to the alignment of the packed member. For example, if the bitfield was packed inside a `u64i`, it would use an alignment of 8. With this change, the generated code now matches what the classic codegen produces. In the assembly format, I changed to be similar to how it's done in loadOp. If there's a better approach, please feel free to point it out.
Diffstat (limited to 'llvm/lib/Support/ProgramStack.cpp')
0 files changed, 0 insertions, 0 deletions