De-constify Types in StructType::get() and TargetData::getIntPtrType().

llvm-svn: 134893
This commit is contained in:
Jay Foad
2011-07-11 09:56:20 +00:00
parent dd8fc04e9b
commit 7c57be3e2b
20 changed files with 51 additions and 65 deletions

View File

@@ -403,7 +403,7 @@ emitCallAndSwitchStatement(Function *newFunction, BasicBlock *codeReplacer,
AllocaInst *Struct = 0;
if (AggregateArgs && (inputs.size() + outputs.size() > 0)) {
std::vector<const Type*> ArgTypes;
std::vector<Type*> ArgTypes;
for (Values::iterator v = StructValues.begin(),
ve = StructValues.end(); v != ve; ++v)
ArgTypes.push_back((*v)->getType());