diff options
Diffstat (limited to 'src/mir/cleanup.cpp')
-rw-r--r-- | src/mir/cleanup.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mir/cleanup.cpp b/src/mir/cleanup.cpp index aded2beb..0cfe2bda 100644 --- a/src/mir/cleanup.cpp +++ b/src/mir/cleanup.cpp @@ -315,12 +315,14 @@ const ::HIR::Literal* MIR_Cleanup_GetConstant(const Span& sp, const StaticTraitR { case ::HIR::CoreType::Char: case ::HIR::CoreType::Usize: + case ::HIR::CoreType::U128: case ::HIR::CoreType::U64: case ::HIR::CoreType::U32: case ::HIR::CoreType::U16: case ::HIR::CoreType::U8: return ::MIR::Constant::make_Uint( lit.as_Integer() ); case ::HIR::CoreType::Isize: + case ::HIR::CoreType::I128: case ::HIR::CoreType::I64: case ::HIR::CoreType::I32: case ::HIR::CoreType::I16: |