sanity check
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@3650 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
This commit is contained in:
parent
149df3c885
commit
22a2526bee
|
@ -52,6 +52,9 @@ public class SSAAddressOfInstruction extends SSAInstruction {
|
|||
* Use this constructor when taking the address of a local variable.
|
||||
*/
|
||||
public SSAAddressOfInstruction(int lval, int local, TypeReference pointeeType) {
|
||||
if (local <= 0) {
|
||||
throw new IllegalArgumentException("Invalid local address load of " + local);
|
||||
}
|
||||
this.lval = lval;
|
||||
this.addressVal = local;
|
||||
this.indexVal = -1;
|
||||
|
|
Loading…
Reference in New Issue