diff options
author | Andrzej Janik <[email protected]> | 2024-05-08 13:19:04 +0000 |
---|---|---|
committer | Andrzej Janik <[email protected]> | 2024-05-08 13:19:04 +0000 |
commit | 2000ca4c6a3428a4cf964cfece57f5b26fb0fbe9 (patch) | |
tree | 14493f65a0c40002ac3d08f75a86bc9423ad0dfc /ptx/src/emit.rs | |
parent | 27c0e136777a2db49dbb0caa888d561819230493 (diff) | |
download | ZLUDA-2000ca4c6a3428a4cf964cfece57f5b26fb0fbe9.tar.gz ZLUDA-2000ca4c6a3428a4cf964cfece57f5b26fb0fbe9.zip |
Fix trap uinstruction codegen, don't fail build with old Rust versionsbuild_fix
Diffstat (limited to 'ptx/src/emit.rs')
-rw-r--r-- | ptx/src/emit.rs | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/ptx/src/emit.rs b/ptx/src/emit.rs index 7388203..e2d00d9 100644 --- a/ptx/src/emit.rs +++ b/ptx/src/emit.rs @@ -1337,9 +1337,6 @@ fn emit_int_trap(ctx: &mut EmitContext) -> Result<(), TranslateError> { 0, LLVM_UNNAMED, ); - // llvm.trap is not a terminator, - // LLVM might fail with an unterminated basic block if we don't insert unreachable - LLVMBuildUnreachable(builder); } Ok(()) } |