Skip to content
This repository has been archived by the owner on May 18, 2019. It is now read-only.

Commit

Permalink
Take an arbitrary alias for externalObjects if unsure
Browse files Browse the repository at this point in the history
  • Loading branch information
vwaurich authored and OpenModelica-Hudson committed Oct 27, 2016
1 parent 745621e commit 82c4ecd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Compiler/BackEnd/BackendDAECreate.mo
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,8 @@ algorithm
simVar := var2;
aliasVar := BackendVariable.setBindExp(var1, SOME(Expression.crefExp(BackendVariable.varCref(simVar))));
else
Error.addCompilerWarning("No heuristic to choose the alias variable of external objects: " + BackendDump.varString(var1)+" = "+ BackendDump.varString(var2));
simVar := var1;
aliasVar := BackendVariable.setBindExp(var2, SOME(Expression.crefExp(BackendVariable.varCref(simVar))));
end if;
end chooseExternalAlias;

Expand Down

0 comments on commit 82c4ecd

Please sign in to comment.