Permalink
Browse files

Fix constants in void context breaking the compiler

  • Loading branch information...
1 parent c9177a8 commit 767fb25ead9ebd39241a24611707388aaee4b915 @sorear committed May 29, 2011
Showing with 4 additions and 0 deletions.
  1. +4 −0 lib/CLRBackend.cs
View
@@ -1915,6 +1915,10 @@ class ClrMarkConstant : ClrOp {
HasCases = false;
Constant = true;
}
+ // no side effects, huh?
+ public override ClrOp Sink() {
+ return ClrNoop.Instance;
+ }
public override void CodeGen(CgContext cx) {
real.CodeGen(cx);
}

0 comments on commit 767fb25

Please sign in to comment.