handle the case where llvm casts a void function so it appears to return a value