Commit 62ac9c86 authored by Kevin Modzelewski's avatar Kevin Modzelewski

Don't require annotating explicit null pointers

parent 7044c24c
......@@ -77,6 +77,10 @@ llvm::Value* RefcountTracker::setType(llvm::Value* v, RefType reftype) {
assert(var.reftype == reftype || var.reftype == RefType::UNKNOWN);
var.reftype = reftype;
if (llvm::isa<ConstantPointerNull>(v))
var.nullable = true;
return v;
}
......
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