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

Commit

Permalink
correct type in DAEUtil.varCref
Browse files Browse the repository at this point in the history
  • Loading branch information
vwaurich authored and OpenModelica-Hudson committed Aug 4, 2017
1 parent 4d034e9 commit 3645e8b
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions Compiler/FrontEnd/DAEUtil.mo
Original file line number Diff line number Diff line change
Expand Up @@ -742,12 +742,8 @@ end removeInnerAttribute;
public function varCref " returns the component reference of a variable"
input DAE.Element elt;
output DAE.ComponentRef cr;
protected
DAE.ComponentRef c;
DAE.Type ty;
algorithm
DAE.VAR(componentRef = c, ty = ty) := elt;
cr := ComponentReference.crefSetLastType(c,ty);
DAE.VAR(componentRef = cr) := elt;
end varCref;

public function getVariableAttributes " gets the attributes of a DAE.Element that is VAR"
Expand Down

0 comments on commit 3645e8b

Please sign in to comment.