You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 18, 2019. It is now read-only.
Copy file name to clipboardExpand all lines: Compiler/SimCode/SimCodeUtil.mo
+2-10Lines changed: 2 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -13321,16 +13321,8 @@ algorithm
13321
13321
sv = BaseHashTable.get(cref, crefToSimVarHT);
13322
13322
sv = match sv.aliasvar
13323
13323
case SimCodeVar.NOALIAS() then sv;
13324
-
/* The C++ runtime generates a different set of variables... */
13325
-
case _ guard Config.simCodeTarget() == "Cpp" then sv;
13326
-
case SimCodeVar.ALIAS(varName=cref)
13327
-
algorithm
13328
-
Error.addSourceMessage(Error.COMPILER_WARNING, {getInstanceName() + " got an alias variable " + ComponentReference.printComponentRefStr(inCref) + " to " + ComponentReference.printComponentRefStr(cref) + ", but before code generation these should have been removed"}, sv.source.info);
13329
-
then cref2simvar(cref, simCode);
13330
-
case SimCodeVar.NEGATEDALIAS(varName=cref)
13331
-
algorithm
13332
-
Error.addSourceMessage(Error.INTERNAL_ERROR, {getInstanceName() + " got a negated alias variable " + ComponentReference.printComponentRefStr(inCref) + " to " + ComponentReference.printComponentRefStr(cref) + ", but before code generation these should have been removed"}, sv.source.info);
13333
-
then sv;
13324
+
case SimCodeVar.ALIAS(varName=cref) then cref2simvar(cref, simCode); /* Possibly not needed; can't really hurt that much though */
else error(sourceInfo(), 'Cannot get attributes of alias variable <%crefStr(name)%>. Alias variables should have been replaced by the compiler before SimCode')
else error(sourceInfo(), 'Cannot get attributes of alias variable <%crefStr(name)%>. Alias variables should have been replaced by the compiler before SimCode')
else error(sourceInfo(), 'Cannot get attributes of alias variable <%crefStr(name)%>. Alias variables should have been replaced by the compiler before SimCode')
else error(sourceInfo(), 'Cannot get attributes of alias variable <%crefStr(cref)%>. Alias variables should have been replaced by the compiler before SimCode')%>
0 commit comments