diff options
| author | Eli Friedman <eli.friedman@gmail.com> | 2010-07-24 23:06:59 +0000 |
|---|---|---|
| committer | Eli Friedman <eli.friedman@gmail.com> | 2010-07-24 23:06:59 +0000 |
| commit | 6cf5141824a4b62f45845a70243ed87a42faf670 (patch) | |
| tree | e693926199b9eebdb9d5155f75fa8174aff88e37 /llvm/lib/AsmParser | |
| parent | 74cc8b270f2601e2b32ea70c310f9d922430a2b6 (diff) | |
| download | bcm5719-llvm-6cf5141824a4b62f45845a70243ed87a42faf670.tar.gz bcm5719-llvm-6cf5141824a4b62f45845a70243ed87a42faf670.zip | |
Revert r109361; it's impossible to write a call with an argument with an
invalid type.
llvm-svn: 109365
Diffstat (limited to 'llvm/lib/AsmParser')
| -rw-r--r-- | llvm/lib/AsmParser/LLParser.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/llvm/lib/AsmParser/LLParser.cpp b/llvm/lib/AsmParser/LLParser.cpp index 2c51e9f512c..61b1ae5e97c 100644 --- a/llvm/lib/AsmParser/LLParser.cpp +++ b/llvm/lib/AsmParser/LLParser.cpp @@ -3710,12 +3710,8 @@ bool LLParser::ParseCall(Instruction *&Inst, PerFunctionState &PFS, !(Ty = dyn_cast<FunctionType>(PFTy->getElementType()))) { // Pull out the types of all of the arguments... std::vector<const Type*> ParamTypes; - for (unsigned i = 0, e = ArgList.size(); i != e; ++i) { - 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(ArgTy); - } + for (unsigned i = 0, e = ArgList.size(); i != e; ++i) + ParamTypes.push_back(ArgList[i].V->getType()); if (!FunctionType::isValidReturnType(RetType)) return Error(RetTypeLoc, "Invalid result type for LLVM function"); |

