From: Yunzhong Gao Date: Thu, 17 Apr 2014 02:26:26 +0000 (+0000) Subject: Adding type info for f16c floating-point type. This is consistent with the X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6667ef7d81ca0bb4e0800cb3e722522a4adac48a;p=clang Adding type info for f16c floating-point type. This is consistent with the Itanium ABI in 2.9.2 Place of Emission. Differential Revision: http://reviews.llvm.org/D2750 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@206439 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/CGRTTI.cpp b/lib/CodeGen/CGRTTI.cpp index 7049df7f78..04523bc08b 100644 --- a/lib/CodeGen/CGRTTI.cpp +++ b/lib/CodeGen/CGRTTI.cpp @@ -984,7 +984,8 @@ void CodeGenModule::EmitFundamentalRTTIDescriptors() { Context.UnsignedShortTy, Context.IntTy, Context.UnsignedIntTy, Context.LongTy, Context.UnsignedLongTy, Context.LongLongTy, - Context.UnsignedLongLongTy, Context.FloatTy, + Context.UnsignedLongLongTy, + Context.HalfTy, Context.FloatTy, Context.DoubleTy, Context.LongDoubleTy, Context.Char16Ty, Context.Char32Ty }; for (unsigned i = 0; i < llvm::array_lengthof(FundamentalTypes); ++i) diff --git a/test/CodeGenCXX/rtti-fundamental.cpp b/test/CodeGenCXX/rtti-fundamental.cpp index 14297b68cf..e70c3aa365 100644 --- a/test/CodeGenCXX/rtti-fundamental.cpp +++ b/test/CodeGenCXX/rtti-fundamental.cpp @@ -89,6 +89,11 @@ namespace __cxxabiv1 { // CHECK: @_ZTIPy = constant // CHECK: @_ZTIPKy = constant +// half +// CHECK: @_ZTIDh = constant +// CHECK: @_ZTIPDh = constant +// CHECK: @_ZTIPKDh = constant + // float // CHECK: @_ZTIf = constant // CHECK: @_ZTIPf = constant