diff options
author | Nick Lewycky <nicholas@mxc.ca> | 2009-06-01 04:42:10 +0000 |
---|---|---|
committer | Nick Lewycky <nicholas@mxc.ca> | 2009-06-01 04:42:10 +0000 |
commit | cb8317dac955bfd58be4461662b640201c2bba63 (patch) | |
tree | 23331f38a2e1acbd4cc804b0827b73088f156985 /llvm/lib/Bitcode/Reader/BitcodeReader.cpp | |
parent | aed2a66189f9424a25c5c45959a642cd691f1486 (diff) | |
download | bcm5719-llvm-cb8317dac955bfd58be4461662b640201c2bba63.tar.gz bcm5719-llvm-cb8317dac955bfd58be4461662b640201c2bba63.zip |
Update the bitcode reader to support reading .bc files where the embedded
metadata references non-Constant values such as instructions.
llvm-svn: 72685
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
-rw-r--r-- | llvm/lib/Bitcode/Reader/BitcodeReader.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Bitcode/Reader/BitcodeReader.cpp b/llvm/lib/Bitcode/Reader/BitcodeReader.cpp index d1fdec2942b..1dad04bd8f6 100644 --- a/llvm/lib/Bitcode/Reader/BitcodeReader.cpp +++ b/llvm/lib/Bitcode/Reader/BitcodeReader.cpp @@ -1025,7 +1025,7 @@ bool BitcodeReader::ParseConstants() { for (unsigned i = 0; i != Size; i += 2) { const Type *Ty = getTypeByID(Record[i], false); if (Ty != Type::VoidTy) - Elts.push_back(ValueList.getConstantFwdRef(Record[i+1], Ty)); + Elts.push_back(ValueList.getValueFwdRef(Record[i+1], Ty)); else Elts.push_back(NULL); } |