[llvm] f2aac19 - [DX] Fix copypasta that caused big-endian failure
Chris Bieneman via llvm-commits
llvm-commits at lists.llvm.org
Thu Oct 5 11:07:39 PDT 2023
Author: Chris Bieneman
Date: 2023-10-05T13:07:04-05:00
New Revision: f2aac198b0d68cf80a29a1b0524322b9da160120
URL: https://github.com/llvm/llvm-project/commit/f2aac198b0d68cf80a29a1b0524322b9da160120
DIFF: https://github.com/llvm/llvm-project/commit/f2aac198b0d68cf80a29a1b0524322b9da160120.diff
LOG: [DX] Fix copypasta that caused big-endian failure
This should fix the failures on the big endian bots.
fast-forwarded.
Added:
Modified:
llvm/include/llvm/BinaryFormat/DXContainer.h
Removed:
################################################################################
diff --git a/llvm/include/llvm/BinaryFormat/DXContainer.h b/llvm/include/llvm/BinaryFormat/DXContainer.h
index 7c220687f138ce9..c3dcd568216b71f 100644
--- a/llvm/include/llvm/BinaryFormat/DXContainer.h
+++ b/llvm/include/llvm/BinaryFormat/DXContainer.h
@@ -453,7 +453,7 @@ struct ProgramSignatureHeader {
void swapBytes() {
sys::swapByteOrder(ParamCount);
- sys::swapByteOrder(ParamCount);
+ sys::swapByteOrder(FirstParamOffset);
}
};
More information about the llvm-commits
mailing list