aboutsummaryrefslogtreecommitdiff
path: root/lib/Sema/SemaType.cpp
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2010-09-23 09:40:31 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2010-09-23 09:40:31 +0000
commit47423bdaa06a3b9c2a859b57c17fc570094dad1c (patch)
treeb22570facdbc1e7f7efa634d6e28cb7c2a53bee0 /lib/Sema/SemaType.cpp
parent7d8eb519ce9b0e5434f185c04404bc817032e716 (diff)
Don't crash on _Imaginary.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@114637 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaType.cpp')
-rw-r--r--lib/Sema/SemaType.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/Sema/SemaType.cpp b/lib/Sema/SemaType.cpp
index aa30b5c2da..254eb7984d 100644
--- a/lib/Sema/SemaType.cpp
+++ b/lib/Sema/SemaType.cpp
@@ -392,8 +392,9 @@ static QualType ConvertDeclSpecToType(Sema &TheSema,
Result = Context.getVectorType(Result, 128/typeSize, AltiVecSpec);
}
- assert(DS.getTypeSpecComplex() != DeclSpec::TSC_imaginary &&
- "FIXME: imaginary types not supported yet!");
+ // FIXME: Imaginary.
+ if (DS.getTypeSpecComplex() == DeclSpec::TSC_imaginary)
+ TheSema.Diag(DS.getTypeSpecComplexLoc(), diag::err_imaginary_not_supported);
// See if there are any attributes on the declspec that apply to the type (as
// opposed to the decl).