Skip to content

Commit

Permalink
- Fixed prefixing of function variables in SCodeInst.
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@12055 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
perost committed Jun 14, 2012
1 parent 4b7fc6b commit edb6995
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Compiler/FrontEnd/SCodeInst.mo
Expand Up @@ -1374,7 +1374,7 @@ algorithm
// Otherwise, look it up in the scopes above, and call instGlobalCref.
case (_, _, _, _ :: env)
equation
(_, path, env, _) = SCodeLookup.lookupNameSilent(inCrefPath, env, Absyn.dummyInfo);
(_, path, env) = SCodeLookup.lookupVariableName(inCrefPath, env, Absyn.dummyInfo);
cref = prefixGlobalCref(inCref, inPrefix, inEnv, env);
then
cref;
Expand Down Expand Up @@ -1659,7 +1659,7 @@ algorithm
(item, _, env, origin) = SCodeLookup.lookupFunctionName(path, inEnv, inInfo);
path = instFunctionName(item, path, origin, env, inPrefix);
(cls as InstTypes.COMPLEX_CLASS(algorithms=algorithms), _, _) = instClassItem(item, InstTypes.NOMOD(),
InstTypes.NO_PREFIXES(), inEnv, inPrefix, INST_ALL());
InstTypes.NO_PREFIXES(), inEnv, InstTypes.emptyPrefix, INST_ALL());
(inputs,outputs,locals) = getFunctionParameters(cls);
stmts = List.flatten(algorithms);
then
Expand Down

0 comments on commit edb6995

Please sign in to comment.