[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: DeadAssignmentEliminator



On Mon, 25 Jun 2001, Stephen Andrew Neuendorffer wrote:

> Perhaps better would be something like:
> if(rhs instanceof InvokeExpr ||
>    rhs instanceof ArrayRef)
> 
>     isEssential = true;
> } else if(rhs instanceof InstanceFieldRef) {
> 	if(method.isStatic() &&
> 		lhs == body.getThisLocal()) {
> 		isEssential = false;

When do you get a read from this.foo in a static method?  Is that even
valid?

pat