From cd361b852b346f4d42f44c55906896003eefcbaa Mon Sep 17 00:00:00 2001 From: Eli Friedman Date: Sat, 24 Jul 2010 23:00:59 +0000 Subject: [PATCH] Minor simplification. llvm-svn: 109362 --- lib/AsmParser/LLParser.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/AsmParser/LLParser.cpp b/lib/AsmParser/LLParser.cpp index 19e51e32cb9..2c51e9f512c 100644 --- a/lib/AsmParser/LLParser.cpp +++ b/lib/AsmParser/LLParser.cpp @@ -3714,7 +3714,7 @@ bool LLParser::ParseCall(Instruction *&Inst, PerFunctionState &PFS, const Type* ArgTy = ArgList[i].V->getType(); if (!FunctionType::isValidArgumentType(ArgTy)) return Error(ArgList[i].Loc, "Invalid argument type for LLVM function"); - ParamTypes.push_back(ArgList[i].V->getType()); + ParamTypes.push_back(ArgTy); } if (!FunctionType::isValidReturnType(RetType))