[llvm] 072288d - [DirectX] Fix broken build after API removal
Chris Bieneman via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 28 18:16:23 PDT 2022
Author: Chris Bieneman
Date: 2022-06-28T20:16:04-05:00
New Revision: 072288dacd2baf57963674ddb692548abd99a8c9
URL: https://github.com/llvm/llvm-project/commit/072288dacd2baf57963674ddb692548abd99a8c9
DIFF: https://github.com/llvm/llvm-project/commit/072288dacd2baf57963674ddb692548abd99a8c9.diff
LOG: [DirectX] Fix broken build after API removal
This removes the DirectX backend's usage of the MaybeAlign API removed
in 1baf1fc.
Added:
Modified:
llvm/lib/Target/DirectX/DXILWriter/DXILBitcodeWriter.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/DirectX/DXILWriter/DXILBitcodeWriter.cpp b/llvm/lib/Target/DirectX/DXILWriter/DXILBitcodeWriter.cpp
index 593897d4d00c9..1aa1d5c752997 100644
--- a/llvm/lib/Target/DirectX/DXILWriter/DXILBitcodeWriter.cpp
+++ b/llvm/lib/Target/DirectX/DXILWriter/DXILBitcodeWriter.cpp
@@ -1251,7 +1251,7 @@ void DXILBitcodeWriter::writeModuleInfo() {
//| constant
Abbv->Add(BitCodeAbbrevOp(BitCodeAbbrevOp::VBR, 6)); // Initializer.
Abbv->Add(BitCodeAbbrevOp(BitCodeAbbrevOp::Fixed, 5)); // Linkage.
- if (MaxAlignment == 0) // Alignment.
+ if (MaxAlignment == Align(0)) // Alignment.
Abbv->Add(BitCodeAbbrevOp(0));
else {
unsigned MaxEncAlignment = getEncodedAlign(MaxAlignment);
More information about the llvm-commits
mailing list