1.1 --- a/jitcraft/Scopes.cpp Tue Jul 03 00:50:36 2012 -0700
1.2 +++ b/jitcraft/Scopes.cpp Tue Jul 03 00:54:40 2012 -0700
1.3 @@ -1,4 +1,5 @@
1.4 -/*
1.5 +/* vim: set ts=4 sw=4 tw=99 et:
1.6 + *
1.7 * Copyright (C) 2012 David Anderson
1.8 *
1.9 * This file is part of JITCraft.
1.10 @@ -222,6 +223,10 @@
1.11 if (kind() == FUNCTION || enclosing()->kind() == FUNCTION)
1.12 return;
1.13
1.14 + Local<Type> type(ZONE(), ZONE()->types()->getPrimitive(PrimitiveType_Native));
1.15 + if (!type)
1.16 + return;
1.17 +
1.18 lifoSlot_ = new (pool_) Variable(this, NULL, SourcePosition());
1.19 - lifoSlot_->setType(ZONE()->types()->getPrimitive(PrimitiveType_Native));
1.20 + lifoSlot_->setType(type);
1.21 }