Skip to content

Commit

Permalink
replace matchcontinue by match
Browse files Browse the repository at this point in the history
Belonging to [master]:
  - OpenModelica/OMCompiler#2002
  • Loading branch information
hkiel authored and OpenModelica-Hudson committed Nov 9, 2017
1 parent eaa2e12 commit 1dfcc60
Show file tree
Hide file tree
Showing 2 changed files with 90 additions and 115 deletions.
4 changes: 2 additions & 2 deletions Compiler/FrontEnd/ComponentReference.mo
Expand Up @@ -86,7 +86,7 @@ public function hashComponentRef "new hashing that properly deals with subscript
input DAE.ComponentRef cr;
output Integer hash;
algorithm
hash := matchcontinue(cr)
hash := match(cr)
local
DAE.Ident id;
DAE.Type tp;
Expand All @@ -103,7 +103,7 @@ hash := matchcontinue(cr)
case(DAE.CREF_ITER(id,_,tp,subs))
then stringHashDjb2(id)+ hashSubscripts(tp,subs);
else 0;
end matchcontinue;
end match;
end hashComponentRef;

protected protected function hashSubscripts "help function, hashing subscripts making sure [1,2] and [2,1] doesn't match to the same number"
Expand Down

0 comments on commit 1dfcc60

Please sign in to comment.