ibrcommon: Missing cast from reference to pointer