Skip to content
Snippets Groups Projects
Commit 225d177a authored by Matthew Pickering's avatar Matthew Pickering
Browse files

Fix with recent GHC version

parent ad744704
No related branches found
No related tags found
No related merge requests found
Pipeline #92860 passed
......@@ -737,17 +737,28 @@ static int handle_command(Socket& sock, const char *buf, uint32_t cmd_len) {
trace("SOURCE_INFO\n");
StgInfoTable *info_table = (StgInfoTable *) p.get<uint64_t>();
trace("INFO: %p\n", info_table);
InfoProvEnt * elt = lookupIPE(info_table);
trace("ELT: %p\n", info_table);
#if MIN_VERSION_GLASGOW_HASKELL(9,11,20240401,0)
InfoProvEnt elt;
int elt_res = lookupIPE(info_table, &elt);
#else
InfoProvEnt * elt = lookupIPE(info_table);
int elt_res = (bool) elt;
#endif
uint32_t len_payload;
if (!elt){
if (!elt_res){
trace("NOT FOUND\n");
resp.write((uint32_t) 0);
}
else {
#if MIN_VERSION_GLASGOW_HASKELL(9,11,20240401,0)
InfoProv ip = elt.prov;
#else
InfoProv ip = elt->prov;
#endif
trace("FOUND\n");
size_t len = 6;
write_size(resp, len);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment