diff options
author | Owen Anderson <resistor@mac.com> | 2009-08-13 23:27:32 +0000 |
---|---|---|
committer | Owen Anderson <resistor@mac.com> | 2009-08-13 23:27:32 +0000 |
commit | a42ac6953be3cd9ff25310c9dcb51f3df0e2f6e1 (patch) | |
tree | a6e4594b64450c9cbe6bfdbea5769076e2ca2097 /llvm/lib/Bitcode/Reader/BitcodeReader.cpp | |
parent | 590a7c780caa2429349d364923ca55d5f3bd3e6b (diff) | |
download | bcm5719-llvm-a42ac6953be3cd9ff25310c9dcb51f3df0e2f6e1.tar.gz bcm5719-llvm-a42ac6953be3cd9ff25310c9dcb51f3df0e2f6e1.zip |
Actually privatize a IntegerTypes, and fix a few bugs exposed by this.
llvm-svn: 78955
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
-rw-r--r-- | llvm/lib/Bitcode/Reader/BitcodeReader.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Bitcode/Reader/BitcodeReader.cpp b/llvm/lib/Bitcode/Reader/BitcodeReader.cpp index 168f32951d5..a1e6099b9f0 100644 --- a/llvm/lib/Bitcode/Reader/BitcodeReader.cpp +++ b/llvm/lib/Bitcode/Reader/BitcodeReader.cpp @@ -358,7 +358,7 @@ const Type *BitcodeReader::getTypeByID(unsigned ID, bool isTypeTable) { // The type table allows forward references. Push as many Opaque types as // needed to get up to ID. while (TypeList.size() <= ID) - TypeList.push_back(OpaqueType::get()); + TypeList.push_back(OpaqueType::get(Context)); return TypeList.back().get(); } @@ -597,7 +597,7 @@ bool BitcodeReader::ParseTypeTable() { if (NumRecords == TypeList.size()) { // If this is a new type slot, just append it. - TypeList.push_back(ResultTy ? ResultTy : OpaqueType::get()); + TypeList.push_back(ResultTy ? ResultTy : OpaqueType::get(Context)); ++NumRecords; } else if (ResultTy == 0) { // Otherwise, this was forward referenced, so an opaque type was created, |