maybe fixed the float op fold
Signed-off-by: Jakub Doka <jakub.doka2@gmail.com>
This commit is contained in:
parent
8bf2d1a266
commit
a1e692eac7
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue