Skip to content

Commit 00919be

Browse files
committed
- Fixed noretcall in algorithm-sections git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@8373 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
1 parent 7c3fb86 commit 00919be

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Compiler/FrontEnd/InstSection.mo

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2508,8 +2508,9 @@ algorithm
25082508
case (cache,env,ih,pre,(SCode.ALG_NORETCALL(functionCall = callFunc, functionArgs = callArgs, info = info)),source,initial_,impl,unrollForLoops)
25092509
equation
25102510
(cache, DAE.CALL(ap, eexpl, tuple_, builtin, tp, inlineType), varprop, _) =
2511-
Static.elabExp(cache, env, Absyn.CALL(callFunc, callArgs), impl,NONE(), true,pre,info);
2512-
ap = PrefixUtil.prefixPath(ap,pre);
2511+
Static.elabExp(cache, env, Absyn.CALL(callFunc, callArgs), impl,NONE(), true,pre,info);
2512+
// DO NOT PREFIX THIS PATH; THE PREFIX IS ONLY USED FOR COMPONENTS, NOT NAMES OF FUNCTIONS....
2513+
// ap = PrefixUtil.prefixPath(ap,pre);
25132514
(cache,eexpl) = PrefixUtil.prefixExpList(cache, env, ih, eexpl, pre);
25142515
source = DAEUtil.addElementSourceFileInfo(source, info);
25152516
stmt = DAE.STMT_NORETCALL(DAE.CALL(ap,eexpl,tuple_,builtin,tp,inlineType),source);

0 commit comments

Comments
 (0)