Skip to content

Commit

Permalink
- fix build
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@14355 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
adrpo committed Dec 13, 2012
1 parent 5927c63 commit 8f71769
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Compiler/FrontEnd/Patternm.mo
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ algorithm

case (cache,_,Absyn.AS(id,exp),ty2,_,_)
equation
(cache,DAE.TYPES_VAR(ty = ty1, attributes = attr),_,_,_) = Lookup.lookupIdent(cache,env,id);
(cache,DAE.TYPES_VAR(ty = ty1, attributes = attr),_,_,_,_) = Lookup.lookupIdent(cache,env,id);
lhs = Absyn.CREF(Absyn.CREF_IDENT(id, {}));
Static.checkAssignmentToInput(lhs, attr, env, Static.bDisallowTopLevelInputs, info);
et = validPatternType(ty1,ty2,inLhs,info);
Expand All @@ -289,21 +289,21 @@ algorithm

case (cache,_,Absyn.CREF(Absyn.CREF_IDENT(id,{})),ty2,_,_)
equation
(cache,DAE.TYPES_VAR(ty = ty1, attributes = attr),_,_,_) = Lookup.lookupIdent(cache,env,id);
(cache,DAE.TYPES_VAR(ty = ty1, attributes = attr),_,_,_,_) = Lookup.lookupIdent(cache,env,id);
Static.checkAssignmentToInput(inLhs, attr, env, Static.bDisallowTopLevelInputs, info);
et = validPatternType(ty1,ty2,inLhs,info);
pattern = Util.if_(Types.isFunctionType(ty2), DAE.PAT_AS_FUNC_PTR(id,DAE.PAT_WILD()), DAE.PAT_AS(id,et,DAE.PAT_WILD()));
then (cache,pattern);

case (cache,_,Absyn.AS(id,exp),ty2,_,_)
equation
failure((_,_,_,_,_) = Lookup.lookupIdent(cache,env,id));
failure((_,_,_,_,_,_) = Lookup.lookupIdent(cache,env,id));
Error.addSourceMessage(Error.LOOKUP_VARIABLE_ERROR,{id,""},info);
then fail();

case (cache,_,Absyn.CREF(Absyn.CREF_IDENT(id,{})),ty2,_,_)
equation
failure((_,_,_,_,_) = Lookup.lookupIdent(cache,env,id));
failure((_,_,_,_,_,_) = Lookup.lookupIdent(cache,env,id));
Error.addSourceMessage(Error.LOOKUP_VARIABLE_ERROR,{id,""},info);
then fail();

Expand Down

0 comments on commit 8f71769

Please sign in to comment.