diff options
author | Eli Friedman <eli.friedman@gmail.com> | 2010-07-24 23:00:59 +0000 |
---|---|---|
committer | Eli Friedman <eli.friedman@gmail.com> | 2010-07-24 23:00:59 +0000 |
commit | 13f03f0006a828c57e910001b00f6d022f3045d8 (patch) | |
tree | 88466a340124069298921b5d2c43acf76669b22e | |
parent | 568463b556a8e60445f76f14965cddaa15ad484b (diff) |
Minor simplification.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@109362 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/AsmParser/LLParser.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/AsmParser/LLParser.cpp b/lib/AsmParser/LLParser.cpp index 19e51e32cb..2c51e9f512 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)) |