diff options
author | Christian Poveda <christian.poveda@ferrous-systems.com> | 2022-08-29 11:37:01 -0500 |
---|---|---|
committer | Emilio Cobos Álvarez <emilio@crisal.io> | 2022-09-22 20:25:33 -1000 |
commit | 6a100c0b32fae6dca5148636bb00c1f8ecd234ca (patch) | |
tree | 1a2bc8737988509ee662ad5f14ae4587ff4d00c2 | |
parent | 0d805d70d5c6e4cc99cbad7a988c38bdfe52321b (diff) |
add `is_divergent` field
-rw-r--r-- | src/ir/function.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/ir/function.rs b/src/ir/function.rs index 27192bcf..afbb9024 100644 --- a/src/ir/function.rs +++ b/src/ir/function.rs @@ -228,6 +228,7 @@ pub struct FunctionSig { /// Whether this function is variadic. is_variadic: bool, + is_divergent: bool, /// Whether this function's return value must be used. must_use: bool, @@ -358,6 +359,7 @@ impl FunctionSig { return_type: TypeId, argument_types: Vec<(Option<String>, TypeId)>, is_variadic: bool, + is_divergent: bool, must_use: bool, abi: Abi, ) -> Self { @@ -365,6 +367,7 @@ impl FunctionSig { return_type, argument_types, is_variadic, + is_divergent, must_use, abi, } @@ -528,7 +531,7 @@ impl FunctionSig { warn!("Unknown calling convention: {:?}", call_conv); } - Ok(Self::new(ret, args, ty.is_variadic(), must_use, abi)) + Ok(Self::new(ret, args, ty.is_variadic(), false, must_use, abi)) } /// Get this function signature's return type. |