diff options
Diffstat (limited to 'src/ir/analysis/has_float.rs')
-rw-r--r-- | src/ir/analysis/has_float.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/ir/analysis/has_float.rs b/src/ir/analysis/has_float.rs index 193862c0..53e6a491 100644 --- a/src/ir/analysis/has_float.rs +++ b/src/ir/analysis/has_float.rs @@ -148,6 +148,14 @@ impl<'ctx> MonotoneFramework for HasFloat<'ctx> { trace!(" Array with type T that do not have float also do not have float"); ConstrainResult::Same } + TypeKind::Vector(t, _) => { + if self.has_float.contains(&t.into()) { + trace!(" Vector with type T that has float also has float"); + return self.insert(id) + } + trace!(" Vector with type T that do not have float also do not have float"); + ConstrainResult::Same + } TypeKind::ResolvedTypeRef(t) | TypeKind::TemplateAlias(t, _) | |