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 | cd36a36fe9be9218756276a33bf5ffe59290e97d (patch) | |
tree | e719bf817600f9fd3013e56fcb20257934d54244 /lib/Bitcode | |
parent | 1571434f2639816971ac4babfb06480247214eb2 (diff) | |
download | external_llvm-cd36a36fe9be9218756276a33bf5ffe59290e97d.zip external_llvm-cd36a36fe9be9218756276a33bf5ffe59290e97d.tar.gz external_llvm-cd36a36fe9be9218756276a33bf5ffe59290e97d.tar.bz2 |
Update the bitcode reader to support reading .bc files where the embedded
metadata references non-Constant values such as instructions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@72685 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Bitcode')
-rw-r--r-- | lib/Bitcode/Reader/BitcodeReader.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Bitcode/Reader/BitcodeReader.cpp b/lib/Bitcode/Reader/BitcodeReader.cpp index d1fdec2..1dad04b 100644 --- a/lib/Bitcode/Reader/BitcodeReader.cpp +++ b/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); } |