sanity check

git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@3650 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
This commit is contained in:
dolby-oss 2009-06-12 13:17:35 +00:00
parent 149df3c885
commit 22a2526bee
1 changed files with 3 additions and 0 deletions

View File

@ -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;