diff options
author | Andrzej Janik <[email protected]> | 2021-06-27 14:58:36 +0200 |
---|---|---|
committer | Andrzej Janik <[email protected]> | 2021-06-27 14:58:36 +0200 |
commit | e89b0c5d9c2cb5a7feeea65b5a6cfb51dd2c4510 (patch) | |
tree | 8de9df7a0a5fac92fb7d5377c847f48ca8c81738 /zluda_dump | |
parent | d7d38256e0580c3cfb649a641d9ed62c6ff0fc20 (diff) | |
download | ZLUDA-e89b0c5d9c2cb5a7feeea65b5a6cfb51dd2c4510.tar.gz ZLUDA-e89b0c5d9c2cb5a7feeea65b5a6cfb51dd2c4510.zip |
Check for presence of ".version" instead of ".address_size" (which is optional)
Diffstat (limited to 'zluda_dump')
-rw-r--r-- | zluda_dump/src/lib.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/zluda_dump/src/lib.rs b/zluda_dump/src/lib.rs index 450a00a..79aca8d 100644 --- a/zluda_dump/src/lib.rs +++ b/zluda_dump/src/lib.rs @@ -156,8 +156,8 @@ unsafe fn record_module_image_raw(module: CUmodule, raw_image: *const ::std::os: } unsafe fn record_module_image(module: CUmodule, image: &str) { - if !image.contains(&".address_size") { - os_log!("Malformed module image: {:?}", module) + if !image.contains(&".version") { + os_log!("Malformed module image: {:?}", module); } else { let mut errors = Vec::new(); let ast = ptx::ModuleParser::new().parse(&mut errors, image); |