Skip to content

Commit

Permalink
[Truffle] Use isRubyNilClass since the other relies on CoreLibrary be…
Browse files Browse the repository at this point in the history
…ing set in RubyContext.
  • Loading branch information
eregon committed Apr 17, 2015
1 parent 099a5f7 commit 1d2698f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Expand Up @@ -74,7 +74,7 @@ public Object freeze(RubySymbol object) {
return object;
}

@Specialization(guards = { "!isRubyNilObject", "!isRubyBignum", "!isRubySymbol" })
@Specialization(guards = { "!isRubyNilClass", "!isRubyBignum", "!isRubySymbol" })
public Object freeze(RubyBasicObject object) {
if (writeFrozenNode == null) {
CompilerDirectives.transferToInterpreter();
Expand Down
Expand Up @@ -75,7 +75,7 @@ public boolean isFrozen(RubySymbol object) {
return true;
}

@Specialization(guards = { "!isRubyNilObject", "!isRubyBignum", "!isRubySymbol" })
@Specialization(guards = { "!isRubyNilClass", "!isRubyBignum", "!isRubySymbol" })
public boolean isFrozen(RubyBasicObject object) {
if (readFrozenNode == null) {
CompilerDirectives.transferToInterpreter();
Expand Down

0 comments on commit 1d2698f

Please sign in to comment.