[llvm-commits] [llvm] r109362 - /llvm/trunk/lib/AsmParser/LLParser.cpp
Eli Friedman
eli.friedman at gmail.com
Sat Jul 24 16:00:59 PDT 2010
Author: efriedma
Date: Sat Jul 24 18:00:59 2010
New Revision: 109362
URL: http://llvm.org/viewvc/llvm-project?rev=109362&view=rev
Log:
Minor simplification.
Modified:
llvm/trunk/lib/AsmParser/LLParser.cpp
Modified: llvm/trunk/lib/AsmParser/LLParser.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/AsmParser/LLParser.cpp?rev=109362&r1=109361&r2=109362&view=diff
==============================================================================
--- llvm/trunk/lib/AsmParser/LLParser.cpp (original)
+++ llvm/trunk/lib/AsmParser/LLParser.cpp Sat Jul 24 18:00:59 2010
@@ -3714,7 +3714,7 @@
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))
More information about the llvm-commits
mailing list