diff options
author | Andrzej Janik <[email protected]> | 2024-11-02 15:57:57 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2024-11-02 15:57:57 +0100 |
commit | b4cb3ade63af94ccb709f2c0858253b13125fcc6 (patch) | |
tree | e0532fa9bd888b7dc526264cff870e44379b02e7 /ptx_parser/src/ast.rs | |
parent | 3870a96592c6a93d3a68391f6cbaecd9c7a2bc97 (diff) | |
download | ZLUDA-b4cb3ade63af94ccb709f2c0858253b13125fcc6.tar.gz ZLUDA-b4cb3ade63af94ccb709f2c0858253b13125fcc6.zip |
Recover from and report unknown instructions and directives (#295)
Diffstat (limited to 'ptx_parser/src/ast.rs')
-rw-r--r-- | ptx_parser/src/ast.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ptx_parser/src/ast.rs b/ptx_parser/src/ast.rs index f0d3fbe..c5e8e79 100644 --- a/ptx_parser/src/ast.rs +++ b/ptx_parser/src/ast.rs @@ -1264,9 +1264,9 @@ pub enum SetpCompareFloat { }
impl TryFrom<(RawSetpCompareOp, ScalarKind)> for SetpCompareInt {
- type Error = PtxError;
+ type Error = PtxError<'static>;
- fn try_from((value, kind): (RawSetpCompareOp, ScalarKind)) -> Result<Self, PtxError> {
+ fn try_from((value, kind): (RawSetpCompareOp, ScalarKind)) -> Result<Self, PtxError<'static>> {
match (value, kind) {
(RawSetpCompareOp::Eq, _) => Ok(SetpCompareInt::Eq),
(RawSetpCompareOp::Ne, _) => Ok(SetpCompareInt::NotEq),
|