Create a union of two values.
(&mut self, x: Value, y: Value)
| 1096 | |
| 1097 | /// Create a union of two values. |
| 1098 | pub fn union(&mut self, x: Value, y: Value) -> Value { |
| 1099 | // Get the type. |
| 1100 | let ty = self.value_type(x); |
| 1101 | debug_assert_eq!(ty, self.value_type(y)); |
| 1102 | self.make_value(ValueData::Union { ty, x, y }) |
| 1103 | } |
| 1104 | |
| 1105 | /// Get the call signature of a direct or indirect call instruction. |
| 1106 | /// Returns `None` if `inst` is not a call instruction. |
no test coverage detected