[llvm] r238889 - Int128 is also a built-in preconstructed type.
Nick Lewycky
nicholas at mxc.ca
Tue Jun 2 16:56:54 PDT 2015
Author: nicholas
Date: Tue Jun 2 18:56:53 2015
New Revision: 238889
URL: http://llvm.org/viewvc/llvm-project?rev=238889&view=rev
Log:
Int128 is also a built-in preconstructed type.
Modified:
llvm/trunk/lib/IR/Type.cpp
Modified: llvm/trunk/lib/IR/Type.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/IR/Type.cpp?rev=238889&r1=238888&r2=238889&view=diff
==============================================================================
--- llvm/trunk/lib/IR/Type.cpp (original)
+++ llvm/trunk/lib/IR/Type.cpp Tue Jun 2 18:56:53 2015
@@ -307,12 +307,13 @@ IntegerType *IntegerType::get(LLVMContex
// 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;
}
More information about the llvm-commits
mailing list