forked from OSchip/llvm-project
[DirectX] Properly fix for MaybeAlign API removal
My last attempt caused a test case failure. This resovles the issue.
This commit is contained in:
parent
5cb0979870
commit
c967c3d39b
|
@ -1251,7 +1251,7 @@ void DXILBitcodeWriter::writeModuleInfo() {
|
|||
//| constant
|
||||
Abbv->Add(BitCodeAbbrevOp(BitCodeAbbrevOp::VBR, 6)); // Initializer.
|
||||
Abbv->Add(BitCodeAbbrevOp(BitCodeAbbrevOp::Fixed, 5)); // Linkage.
|
||||
if (MaxAlignment == Align(0)) // Alignment.
|
||||
if (!MaxAlignment) // Alignment.
|
||||
Abbv->Add(BitCodeAbbrevOp(0));
|
||||
else {
|
||||
unsigned MaxEncAlignment = getEncodedAlign(MaxAlignment);
|
||||
|
|
Loading…
Reference in New Issue