aboutsummaryrefslogtreecommitdiff
path: root/lib/Sema/SemaType.cpp
diff options
context:
space:
mode:
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).