diff options
Diffstat (limited to 'llvm/lib/AsmParser')
| -rw-r--r-- | llvm/lib/AsmParser/LLParser.cpp | 8 | 
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/lib/AsmParser/LLParser.cpp b/llvm/lib/AsmParser/LLParser.cpp index 881b3e943b8..4b066fef727 100644 --- a/llvm/lib/AsmParser/LLParser.cpp +++ b/llvm/lib/AsmParser/LLParser.cpp @@ -1442,7 +1442,7 @@ bool LLParser::ParseFunctionType(Type *&Result) {                     "argument attributes invalid in function type");    } -  SmallVector<const Type*, 16> ArgListTy; +  SmallVector<Type*, 16> ArgListTy;    for (unsigned i = 0, e = ArgList.size(); i != e; ++i)      ArgListTy.push_back(ArgList[i].Ty); @@ -2655,7 +2655,7 @@ bool LLParser::ParseFunctionHeader(Function *&Fn, bool isDefine) {    // Okay, if we got here, the function is syntactically valid.  Convert types    // and do semantic checks. -  std::vector<const Type*> ParamTypeList; +  std::vector<Type*> ParamTypeList;    SmallVector<AttributeWithIndex, 8> Attrs;    if (RetAttrs != Attribute::None) @@ -3171,7 +3171,7 @@ bool LLParser::ParseInvoke(Instruction *&Inst, PerFunctionState &PFS) {    if (!(PFTy = dyn_cast<PointerType>(RetType)) ||        !(Ty = dyn_cast<FunctionType>(PFTy->getElementType()))) {      // Pull out the types of all of the arguments... -    std::vector<const Type*> ParamTypes; +    std::vector<Type*> ParamTypes;      for (unsigned i = 0, e = ArgList.size(); i != e; ++i)        ParamTypes.push_back(ArgList[i].V->getType()); @@ -3508,7 +3508,7 @@ bool LLParser::ParseCall(Instruction *&Inst, PerFunctionState &PFS,    if (!(PFTy = dyn_cast<PointerType>(RetType)) ||        !(Ty = dyn_cast<FunctionType>(PFTy->getElementType()))) {      // Pull out the types of all of the arguments... -    std::vector<const Type*> ParamTypes; +    std::vector<Type*> ParamTypes;      for (unsigned i = 0, e = ArgList.size(); i != e; ++i)        ParamTypes.push_back(ArgList[i].V->getType());  | 

