diff options
| author | Nick Lewycky <nicholas@mxc.ca> | 2015-06-02 23:56:53 +0000 |
|---|---|---|
| committer | Nick Lewycky <nicholas@mxc.ca> | 2015-06-02 23:56:53 +0000 |
| commit | 2f41757634d9a58ef6808410ad8e685331233019 (patch) | |
| tree | f2fd19009c7317569a447662d4f883172525e3cf /llvm/lib/IR | |
| parent | 664e7f2e2e0468faee6eddf80baad412a7bec4f1 (diff) | |
| download | bcm5719-llvm-2f41757634d9a58ef6808410ad8e685331233019.tar.gz bcm5719-llvm-2f41757634d9a58ef6808410ad8e685331233019.zip | |
Int128 is also a built-in preconstructed type.
llvm-svn: 238889
Diffstat (limited to 'llvm/lib/IR')
| -rw-r--r-- | llvm/lib/IR/Type.cpp | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/llvm/lib/IR/Type.cpp b/llvm/lib/IR/Type.cpp index 1c405168ae2..b5c4e5d4c6d 100644 --- a/llvm/lib/IR/Type.cpp +++ b/llvm/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<IntegerType>(Type::getInt1Ty(C)); - case 8: return cast<IntegerType>(Type::getInt8Ty(C)); - case 16: return cast<IntegerType>(Type::getInt16Ty(C)); - case 32: return cast<IntegerType>(Type::getInt32Ty(C)); - case 64: return cast<IntegerType>(Type::getInt64Ty(C)); - default: + case 1: return cast<IntegerType>(Type::getInt1Ty(C)); + case 8: return cast<IntegerType>(Type::getInt8Ty(C)); + case 16: return cast<IntegerType>(Type::getInt16Ty(C)); + case 32: return cast<IntegerType>(Type::getInt32Ty(C)); + case 64: return cast<IntegerType>(Type::getInt64Ty(C)); + case 128: return cast<IntegerType>(Type::getInt128Ty(C)); + default: break; } |

