De-constify Types in StructType::get() and TargetData::getIntPtrType().
[oota-llvm.git] / lib / VMCore / Constants.cpp
index 57498b485921dd3c004ade3ea55b76187857b67b..1529c4ad48122090404b418f81f2eb5b86ec3e3f 100644 (file)
@@ -619,7 +619,7 @@ Constant *ConstantArray::get(LLVMContext &Context, StringRef Str,
 StructType *ConstantStruct::getTypeForElements(LLVMContext &Context,
                                                ArrayRef<Constant*> V,
                                                bool Packed) {
-  SmallVector<const Type*, 16> EltTypes;
+  SmallVector<Type*, 16> EltTypes;
   for (unsigned i = 0, e = V.size(); i != e; ++i)
     EltTypes.push_back(V[i]->getType());