Commit 833d9c25 authored by Kevin Modzelewski's avatar Kevin Modzelewski

minor fixes

parent b7a57379
......@@ -2773,6 +2773,10 @@ public:
return rtn;
}
ConcreteCompilerVariable* makeConverted(IREmitter& emitter, VAR* var, ConcreteCompilerType* other_type) override {
if (other_type == other_type->getBoxType()) {
assert(other_type == UNKNOWN);
return emitter.getNone()->makeConverted(emitter, other_type);
}
llvm::Value* v = llvm::UndefValue::get(other_type->llvmType());
return new ConcreteCompilerVariable(other_type, v);
}
......
......@@ -20,6 +20,7 @@
namespace pyston {
BoxedDictIterator::BoxedDictIterator(BoxedDict* d) : d(d), it(d->d.begin()), itEnd(d->d.end()) {
Py_INCREF(d);
}
Box* dict_iter(Box* s) noexcept {
......
# expected: reffail
def f((a,b)):
print a,b
print sorted(list(locals().iteritems()))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment