aboutsummaryrefslogtreecommitdiffstats
path: root/lib/AsmParser
diff options
context:
space:
mode:
Diffstat (limited to 'lib/AsmParser')
-rw-r--r--lib/AsmParser/LLParser.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/AsmParser/LLParser.cpp b/lib/AsmParser/LLParser.cpp
index 19e51e3..2c51e9f 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))