Skip to content

Commit

Permalink
- more fixes for bug #1956 for +scodeInstShortcut (should fix some of…
Browse files Browse the repository at this point in the history
… the AVM models)

git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@14487 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
adrpo committed Dec 20, 2012
1 parent c780843 commit 8a97e77
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Compiler/FrontEnd/NFSCodeAnalyseRedeclare.mo
Original file line number Diff line number Diff line change
Expand Up @@ -631,7 +631,8 @@ algorithm

comp = inElement;
comp = SCode.setComponentTypeSpec(comp, Absyn.TPATH(tpath, ad));
infos = mkInfos(List.union(previousItem,inPreviousItem), {RP(replacements),EI(comp, env),EI(orig, inEnv)});
comp = mergeComponentModifiers(comp, orig);
infos = mkInfos(List.union(previousItem,inPreviousItem), {RP(replacements), EI(comp, env)});

fullName = NFSCodeEnv.mergePathWithEnvPath(Absyn.IDENT(name), inEnv);

Expand Down
1 change: 0 additions & 1 deletion Compiler/FrontEnd/SCodeUtil.mo
Original file line number Diff line number Diff line change
Expand Up @@ -2021,7 +2021,6 @@ algorithm
// instantiation doesn't handle class modifications yet. Enable this
// when it does.
/*************************************************************************/

case SCode.CLASS(name, prefs, ep, pp, res, SCode.DERIVED(ty, mod, attr, cmt), info)
equation
true = Flags.isSet(Flags.SCODE_INST_SHORTCUT);
Expand Down

0 comments on commit 8a97e77

Please sign in to comment.