]> granicus.if.org Git - clang/commitdiff
Do not drop uint128 on the floor.
authorDevang Patel <dpatel@apple.com>
Thu, 5 May 2011 17:06:30 +0000 (17:06 +0000)
committerDevang Patel <dpatel@apple.com>
Thu, 5 May 2011 17:06:30 +0000 (17:06 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@130929 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/CGDebugInfo.cpp
test/CodeGen/debug-info.c

index 38bfcf22b740c22544256ab11ca2e7bdcab2d482..3c411f4ffeddf1927e033729804720639711ac52 100644 (file)
@@ -335,10 +335,12 @@ llvm::DIType CGDebugInfo::CreateType(const BuiltinType *BT) {
   case BuiltinType::SChar: Encoding = llvm::dwarf::DW_ATE_signed_char; break;
   case BuiltinType::UShort:
   case BuiltinType::UInt:
+  case BuiltinType::UInt128:
   case BuiltinType::ULong:
   case BuiltinType::ULongLong: Encoding = llvm::dwarf::DW_ATE_unsigned; break;
   case BuiltinType::Short:
   case BuiltinType::Int:
+  case BuiltinType::Int128:
   case BuiltinType::Long:
   case BuiltinType::LongLong:  Encoding = llvm::dwarf::DW_ATE_signed; break;
   case BuiltinType::Bool:      Encoding = llvm::dwarf::DW_ATE_boolean; break;
index a84d0b2c6aca5db6729872445d0040f3261b9aa9..8e7d66558dba9f091c9d192ec723f76eefa9308e 100644 (file)
@@ -47,3 +47,10 @@ struct foo2 foo2;
 typedef int barfoo;
 barfoo foo() {
 }
+
+// CHECK: __uint128_t
+__uint128_t foo128 ()
+{
+  __uint128_t int128 = 44;
+  return int128;
+}