Make the AttrListPtr object a part of the LLVMContext.
[oota-llvm.git] / lib / Bitcode / Reader / BitcodeReader.cpp
index ac298301e84a4af750d10e37c179ba8fc6f483ba..b973ea461ae1ac2ebad01c67f0ad9cc684cb3d11 100644 (file)
@@ -487,7 +487,7 @@ bool BitcodeReader::ParseAttributeBlock() {
                                                   Attributes::get(Context, B)));
       }
 
-      MAttributes.push_back(AttrListPtr::get(Attrs));
+      MAttributes.push_back(AttrListPtr::get(Context, Attrs));
       Attrs.clear();
       break;
     }