maybe fixed the float op fold

Signed-off-by: Jakub Doka <jakub.doka2@gmail.com>
This commit is contained in:
Jakub Doka 2024-12-16 14:06:12 +01:00
parent 8bf2d1a266
commit a1e692eac7
No known key found for this signature in database
GPG key ID: C6E9A89936B8C143

View file

@ -966,7 +966,7 @@ impl Nodes {
}; };
let ty = self[target].ty; let ty = self[target].ty;
let is_float = self[lhs].ty.is_float(); let is_float = self[target].ty.is_float();
if let (&K::CInt { value: a }, &K::CInt { value: b }) = if let (&K::CInt { value: a }, &K::CInt { value: b }) =
(&self[lhs].kind, &self[rhs].kind) (&self[lhs].kind, &self[rhs].kind)