diff options
author | Ben Brewer <ben.brewer@codethink.co.uk> | 2015-08-06 16:01:10 +0100 |
---|---|---|
committer | Craig Griffiths <craig.griffiths@codethink.co.uk> | 2015-08-18 14:31:04 +0100 |
commit | 7765a730af8a0ccc31f051cffd8a5d362b8b71d8 (patch) | |
tree | 9d883565dbad96239d5721026546b37fe94839a5 | |
parent | a2084c538916376a366b703f0da9ec623f720775 (diff) | |
download | flang-7765a730af8a0ccc31f051cffd8a5d362b8b71d8.tar.gz |
Remove character error check in semantic analysis of EQUIVALENCE
-rw-r--r-- | lib/Sema/SemaEquivalence.cpp | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/lib/Sema/SemaEquivalence.cpp b/lib/Sema/SemaEquivalence.cpp index a1cd6f9d98..3fee2f4abb 100644 --- a/lib/Sema/SemaEquivalence.cpp +++ b/lib/Sema/SemaEquivalence.cpp @@ -244,11 +244,6 @@ bool Sema::CheckEquivalenceType(QualType ExpectedType, const Expr *E) { } } else if(ExpectedType->isBuiltinType()) { if(IsDefaultBuiltinOrDoublePrecisionType(ExpectedType)) { - if(ObjectType->isCharacterType()) { - Diags.Report(E->getLocation(), diag::err_expected_numeric_or_logical_expr) - << ObjectType << E->getSourceRange(); - return true; - } if(!IsDefaultBuiltinOrDoublePrecisionType(ObjectType)) { Diags.Report(E->getLocation(), diag::err_typecheck_expected_default_kind_expr) |