Skip to content

Commit

Permalink
Fixed a small issue in GenerateParamListFromString
Browse files Browse the repository at this point in the history
  • Loading branch information
kren1 committed Jul 27, 2015
1 parent 3453904 commit a3e509f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Function.cpp
Expand Up @@ -348,7 +348,7 @@ GenerateParameterListFromString(Function &currFunc, const string &params_string)
assert((vs[i] != "Void") && "Invalid parameter type!");
CVQualifiers qfer;
qfer.add_qualifiers(false, false);
const Type *ty = Type::get_type_from_string(vs[0]);
const Type *ty = Type::get_type_from_string(vs[i]);
Variable *v = VariableSelector::GenerateParameterVariable(ty, &qfer);
assert(v);
currFunc.param.push_back(v);
Expand Down

0 comments on commit a3e509f

Please sign in to comment.