From 9c8ebbf969de452d58af705b004ba3981768c99a Mon Sep 17 00:00:00 2001 From: Nick Lewycky Date: Tue, 2 Jun 2015 23:56:53 +0000 Subject: [PATCH] Int128 is also a built-in preconstructed type. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@238889 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/IR/Type.cpp | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/lib/IR/Type.cpp b/lib/IR/Type.cpp index 1c405168ae2..b5c4e5d4c6d 100644 --- a/lib/IR/Type.cpp +++ b/lib/IR/Type.cpp @@ -307,12 +307,13 @@ IntegerType *IntegerType::get(LLVMContext &C, unsigned NumBits) { // Check for the built-in integer types switch (NumBits) { - case 1: return cast(Type::getInt1Ty(C)); - case 8: return cast(Type::getInt8Ty(C)); - case 16: return cast(Type::getInt16Ty(C)); - case 32: return cast(Type::getInt32Ty(C)); - case 64: return cast(Type::getInt64Ty(C)); - default: + case 1: return cast(Type::getInt1Ty(C)); + case 8: return cast(Type::getInt8Ty(C)); + case 16: return cast(Type::getInt16Ty(C)); + case 32: return cast(Type::getInt32Ty(C)); + case 64: return cast(Type::getInt64Ty(C)); + case 128: return cast(Type::getInt128Ty(C)); + default: break; }