summaryrefslogtreecommitdiffstats
path: root/clang/lib
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-05-13 05:02:08 +0000
committerChris Lattner <sabre@nondot.org>2009-05-13 05:02:08 +0000
commitdf24298b403395da461bd89796ce6c0ee05cdb35 (patch)
treed02d0ca0ab58bef617f66d1cc5e7d34528667731 /clang/lib
parent5868c031916c46ef45606287c45f672814c83781 (diff)
downloadbcm5719-llvm-df24298b403395da461bd89796ce6c0ee05cdb35.tar.gz
bcm5719-llvm-df24298b403395da461bd89796ce6c0ee05cdb35.zip
reject use of the GNU _Decimal32 extension with a diagnostic, not an abort.
rdar://6880104 llvm-svn: 71639
Diffstat (limited to 'clang/lib')
-rw-r--r--clang/lib/Sema/SemaType.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/clang/lib/Sema/SemaType.cpp b/clang/lib/Sema/SemaType.cpp
index d04a5ad6c59..972ac82b4cb 100644
--- a/clang/lib/Sema/SemaType.cpp
+++ b/clang/lib/Sema/SemaType.cpp
@@ -164,7 +164,10 @@ QualType Sema::ConvertDeclSpecToType(const DeclSpec &DS,
case DeclSpec::TST_decimal32: // _Decimal32
case DeclSpec::TST_decimal64: // _Decimal64
case DeclSpec::TST_decimal128: // _Decimal128
- assert(0 && "FIXME: GNU decimal extensions not supported yet!");
+ Diag(DS.getTypeSpecTypeLoc(), diag::err_decimal_unsupported);
+ Result = Context.IntTy;
+ isInvalid = true;
+ break;
case DeclSpec::TST_class:
case DeclSpec::TST_enum:
case DeclSpec::TST_union:
OpenPOWER on IntegriCloud