forked from M-Labs/artiq
firmware: don't crash on artiq_compile'd kernels (fixes #641).
This commit is contained in:
parent
68b2373b9a
commit
b9588ddf03
@ -272,6 +272,9 @@ unsafe fn attribute_writeback(typeinfo: *const ()) {
|
||||
objects: *const *const ()
|
||||
}
|
||||
|
||||
// artiq_compile'd kernels don't include type information
|
||||
if typeinfo.is_null() { return }
|
||||
|
||||
let mut tys = typeinfo as *const *const Type;
|
||||
while !(*tys).is_null() {
|
||||
let ty = *tys;
|
||||
|
Loading…
Reference in New Issue
Block a user