jitcraft/Code.h
changeset 85 06a0015b6a5c
parent 70 1aec996cde2d
     1.1 --- a/jitcraft/Code.h	Fri Jul 20 00:03:10 2012 -0700
     1.2 +++ b/jitcraft/Code.h	Mon Jul 23 01:19:44 2012 -0700
     1.3 @@ -69,7 +69,7 @@
     1.4          return Type::cast(locals_->at(index));
     1.5      }
     1.6      unsigned nlocals() {
     1.7 -        return locals_->length();
     1.8 +        return locals_ ? locals_->length() : 0;
     1.9      }
    1.10      unsigned maxStackDepth() {
    1.11          return maxStackDepth_;