Constants and Metadata share ValueList. This means they must be emitted interleaved...
authorDevang Patel <dpatel@apple.com>
Tue, 4 Aug 2009 02:26:56 +0000 (02:26 +0000)
committerDevang Patel <dpatel@apple.com>
Tue, 4 Aug 2009 02:26:56 +0000 (02:26 +0000)
commitd701aa7bed07cad16e33594c59251c958df2c74d
tree94a472ac23a8912e77f306d7ef315858d8186139
parentf0409ea488ec2cf27daeb192d18e206b11c6360f
Constants and Metadata share ValueList. This means they must be emitted interleaved (using appropriate BLOCK_IDs) otherwise ValuePtrs index gets out of sync.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78033 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Bitcode/Writer/BitcodeWriter.cpp
test/Bitcode/metadata.ll [new file with mode: 0644]