mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-12 13:38:21 +00:00
Use separate ValueList for metadata.
This fixes PR4666. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78056 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -492,7 +492,7 @@ static void WriteMDNode(const MDNode *N,
|
||||
|
||||
static void WriteModuleMetadata(const ValueEnumerator &VE,
|
||||
BitstreamWriter &Stream) {
|
||||
const ValueEnumerator::ValueList &Vals = VE.getValues();
|
||||
const ValueEnumerator::ValueList &Vals = VE.getMDValues();
|
||||
bool StartedMetadataBlock = false;
|
||||
unsigned MDSAbbrev = 0;
|
||||
SmallVector<uint64_t, 64> Record;
|
||||
@ -601,8 +601,6 @@ static void WriteConstants(unsigned FirstVal, unsigned LastVal,
|
||||
const Type *LastTy = 0;
|
||||
for (unsigned i = FirstVal; i != LastVal; ++i) {
|
||||
const Value *V = Vals[i].first;
|
||||
if (isa<MetadataBase>(V))
|
||||
continue;
|
||||
// If we need to switch types, do so now.
|
||||
if (V->getType() != LastTy) {
|
||||
LastTy = V->getType();
|
||||
|
Reference in New Issue
Block a user