diff options
Diffstat (limited to 'ptx/src/pass/insert_mem_ssa_statements.rs')
-rw-r--r-- | ptx/src/pass/insert_mem_ssa_statements.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ptx/src/pass/insert_mem_ssa_statements.rs b/ptx/src/pass/insert_mem_ssa_statements.rs index e314b05..150109b 100644 --- a/ptx/src/pass/insert_mem_ssa_statements.rs +++ b/ptx/src/pass/insert_mem_ssa_statements.rs @@ -189,7 +189,7 @@ impl<'a, 'input> InsertMemSSAVisitor<'a, 'input> { return Ok(symbol);
};
let (mut var_type, var_space, is_variable) = self.id_def.get_typed(symbol)?;
- if !space_is_compatible(var_space, ast::StateSpace::Reg) || !is_variable {
+ if var_space != ast::StateSpace::Reg || !is_variable {
return Ok(symbol);
};
let member_index = match member_index {
|