aboutsummaryrefslogtreecommitdiffhomepage
path: root/ptx/src/pass/expand_arguments.rs
diff options
context:
space:
mode:
Diffstat (limited to 'ptx/src/pass/expand_arguments.rs')
-rw-r--r--ptx/src/pass/expand_arguments.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/ptx/src/pass/expand_arguments.rs b/ptx/src/pass/expand_arguments.rs
index d0c7c98..e496c75 100644
--- a/ptx/src/pass/expand_arguments.rs
+++ b/ptx/src/pass/expand_arguments.rs
@@ -63,9 +63,9 @@ impl<'a, 'b> FlattenArguments<'a, 'b> {
} else {
return Err(TranslateError::UntypedSymbol);
};
- if state_space == ast::StateSpace::Reg || state_space == ast::StateSpace::Sreg {
+ if state_space == ast::StateSpace::Reg {
let (reg_type, reg_space) = self.id_def.get_typed(reg)?;
- if !space_is_compatible(reg_space, ast::StateSpace::Reg) {
+ if reg_space != ast::StateSpace::Reg {
return Err(error_mismatched_type());
}
let reg_scalar_type = match reg_type {