Push LLVMContexts through the IntegerType APIs.
[oota-llvm.git] / lib / VMCore / ConstantsContext.h
index f1d4b25e1bcdd4b90bea741533b40bc88fb61500..be75f11e19c1898df0eafd99adb48256afa9d9f3 100644 (file)
@@ -446,7 +446,7 @@ struct ConstantCreator<ConstantAggregateZero, Type, ValType> {
 template<>
 struct ConstantCreator<MDNode, Type, std::vector<Value*> > {
   static MDNode *create(const Type* Ty, const std::vector<Value*> &V) {
 template<>
 struct ConstantCreator<MDNode, Type, std::vector<Value*> > {
   static MDNode *create(const Type* Ty, const std::vector<Value*> &V) {
-    return new MDNode(&V[0], V.size());
+    return new MDNode(Ty->getContext(), &V[0], V.size());
   }
 };
 
   }
 };