[llvm-commits] [llvm] r72685 - /llvm/trunk/lib/Bitcode/Reader/BitcodeReader.cpp
Nick Lewycky
nicholas at mxc.ca
Sun May 31 21:42:10 PDT 2009
Author: nicholas
Date: Sun May 31 23:42:10 2009
New Revision: 72685
URL: http://llvm.org/viewvc/llvm-project?rev=72685&view=rev
Log:
Update the bitcode reader to support reading .bc files where the embedded
metadata references non-Constant values such as instructions.
Modified:
llvm/trunk/lib/Bitcode/Reader/BitcodeReader.cpp
Modified: llvm/trunk/lib/Bitcode/Reader/BitcodeReader.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Bitcode/Reader/BitcodeReader.cpp?rev=72685&r1=72684&r2=72685&view=diff
==============================================================================
--- llvm/trunk/lib/Bitcode/Reader/BitcodeReader.cpp (original)
+++ llvm/trunk/lib/Bitcode/Reader/BitcodeReader.cpp Sun May 31 23:42:10 2009
@@ -1025,7 +1025,7 @@
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);
}
More information about the llvm-commits
mailing list