Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix several more verifier-caught errors
  • Loading branch information
sorear committed Dec 23, 2010
1 parent 11ec6d1 commit 65b47c2
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions lib/CLRBackend.cs
Expand Up @@ -969,6 +969,7 @@ class ClrMethodCall : ClrOp {
// defined on the value type itself
if (i == 0 && o.Returns.IsValueType && !Method.IsStatic)
cx.il.Emit(OpCodes.Box, o.Returns);
i++;
}
cx.il.Emit((Method.IsStatic ? OpCodes.Call : OpCodes.Callvirt),
Method); // XXX C#
Expand Down Expand Up @@ -1424,6 +1425,9 @@ class ClrSubyCall : ClrOp {

public ClrSubyCall(string mname, string sig, ClrOp[] zyg) {
if (mname != null) sig = "\0" + sig;
TypeCheck(zyg[0].Returns, Tokens.IP6);
for (int i = 1; i < zyg.Length; i++)
TypeCheck(zyg[i].Returns, Tokens.Variable);
this.mname = mname;
this.sig = sig;
this.zyg = zyg;
Expand Down Expand Up @@ -2930,8 +2934,8 @@ class NamProcessor {
string s = ((f & LexSimple.HASH) != 0) ? "Hash" : "Array";
bit = new object[] { new JScalar("methodcall"),
new JScalar("new"), new JScalar(""),
new object[] { new JScalar("corelex"), new JScalar(s) },
new object[] { new JScalar("fetch"), new object[] { new JScalar("corelex"), new JScalar(s) } } };
new object[] { new JScalar("fetch"), new object[] { new JScalar("corelex"), new JScalar(s) } },
new object[] { new JScalar("corelex"), new JScalar(s) } };
} else {
bit = new object[] { new JScalar("newblankrwscalar") };
}
Expand Down

0 comments on commit 65b47c2

Please sign in to comment.