mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-13 23:25:06 +00:00
Allow null to be an element of NamedMDNode. e.g. !llvm.stuff = !{!0, !1, null}
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92783 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -540,7 +540,7 @@ static void WriteModuleMetadata(const ValueEnumerator &VE,
|
||||
if (NMD->getOperand(i))
|
||||
Record.push_back(VE.getValueID(NMD->getOperand(i)));
|
||||
else
|
||||
Record.push_back(0);
|
||||
Record.push_back(~0U);
|
||||
}
|
||||
Stream.EmitRecord(bitc::METADATA_NAMED_NODE, Record, 0);
|
||||
Record.clear();
|
||||
|
Reference in New Issue
Block a user