projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
079c034
)
Update the bitcode reader to support reading .bc files where the embedded
author
Nick Lewycky
<nicholas@mxc.ca>
Mon, 1 Jun 2009 04:42:10 +0000
(
04:42
+0000)
committer
Nick Lewycky
<nicholas@mxc.ca>
Mon, 1 Jun 2009 04:42:10 +0000
(
04:42
+0000)
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
lib/Bitcode/Reader/BitcodeReader.cpp
patch
|
blob
|
history
diff --git
a/lib/Bitcode/Reader/BitcodeReader.cpp
b/lib/Bitcode/Reader/BitcodeReader.cpp
index d1fdec2942bb5a0efaa59f2952b8941d19d07c3f..1dad04bd8f6f4a81e9adceb73ad056933042ac99 100644
(file)
--- 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.get
Constant
FwdRef(Record[i+1], Ty));
+ Elts.push_back(ValueList.get
Value
FwdRef(Record[i+1], Ty));
else
Elts.push_back(NULL);
}