Skip to content

Commit

Permalink
[Truffle] Add boolean specialization to untaint node
Browse files Browse the repository at this point in the history
  • Loading branch information
Brandon Fish committed Oct 9, 2016
1 parent fc52ea4 commit c64bb15
Showing 1 changed file with 5 additions and 0 deletions.
Expand Up @@ -1896,6 +1896,11 @@ public long untaint(long num) {
return num;
}

@Specialization
public boolean untaint(boolean bool) {
return bool;

This comment has been minimized.

Copy link
@eregon

eregon Oct 10, 2016

Member

Might as well do the last primitive type while you are at it: double 😃

This comment has been minimized.

Copy link
@bjfish

bjfish Oct 10, 2016

Contributor

Done at a1a1fe1, thanks

}

@Specialization
public Object taint(DynamicObject object) {
if (!isTaintedNode.executeIsTainted(object)) {
Expand Down

0 comments on commit c64bb15

Please sign in to comment.