diff options
author | Devang Patel <dpatel@apple.com> | 2009-08-04 02:26:56 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2009-08-04 02:26:56 +0000 |
commit | d701aa7bed07cad16e33594c59251c958df2c74d (patch) | |
tree | 94a472ac23a8912e77f306d7ef315858d8186139 /test/Bitcode | |
parent | f0409ea488ec2cf27daeb192d18e206b11c6360f (diff) | |
download | external_llvm-d701aa7bed07cad16e33594c59251c958df2c74d.zip external_llvm-d701aa7bed07cad16e33594c59251c958df2c74d.tar.gz external_llvm-d701aa7bed07cad16e33594c59251c958df2c74d.tar.bz2 |
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
Diffstat (limited to 'test/Bitcode')
-rw-r--r-- | test/Bitcode/metadata.ll | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/Bitcode/metadata.ll b/test/Bitcode/metadata.ll new file mode 100644 index 0000000..d72221a --- /dev/null +++ b/test/Bitcode/metadata.ll @@ -0,0 +1,5 @@ +; RUN: llvm-as < %s | llvm-dis -f -o /dev/null + +!llvm.foo = !{!0} +!0 = metadata !{i32 42} +@my.str = internal constant [4 x i8] c"foo\00" |