about summary refs log tree commit diff
path: root/compiler/rustc_codegen_ssa/src
diff options
context:
space:
mode:
authorDavid Morrison <drmorr@evokewonder.com>2021-11-10 20:14:23 -0800
committerDavid Morrison <drmorr@evokewonder.com>2022-04-02 17:21:08 -0700
commitaa670166243e264985f95a21490f92c91addf48c (patch)
tree10b46e2f285c1472fff7e506f97be809c0e6d1b5 /compiler/rustc_codegen_ssa/src
parent8f96ef4bb56f5d905ed89ed569ef97f50731c977 (diff)
make memcmp return a value of c_int_width instead of i32
Diffstat (limited to 'compiler/rustc_codegen_ssa/src')
-rw-r--r--compiler/rustc_codegen_ssa/src/traits/consts.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/rustc_codegen_ssa/src/traits/consts.rs b/compiler/rustc_codegen_ssa/src/traits/consts.rs
index 918f3684169..c3519a24d53 100644
--- a/compiler/rustc_codegen_ssa/src/traits/consts.rs
+++ b/compiler/rustc_codegen_ssa/src/traits/consts.rs
@@ -13,6 +13,7 @@ pub trait ConstMethods<'tcx>: BackendTypes {
     fn const_uint(&self, t: Self::Type, i: u64) -> Self::Value;
     fn const_uint_big(&self, t: Self::Type, u: u128) -> Self::Value;
     fn const_bool(&self, val: bool) -> Self::Value;
+    fn const_i16(&self, i: i16) -> Self::Value;
     fn const_i32(&self, i: i32) -> Self::Value;
     fn const_u32(&self, i: u32) -> Self::Value;
     fn const_u64(&self, i: u64) -> Self::Value;