summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaChecking.cpp
diff options
context:
space:
mode:
authorJohn McCall <rjmccall@apple.com>2010-11-16 05:46:29 +0000
committerJohn McCall <rjmccall@apple.com>2010-11-16 05:46:29 +0000
commitd50a27111cef3335d52de9056a60b081aa57b6df (patch)
tree767d9210fe3899643bb98c7cbf3fc86173464cb0 /clang/lib/Sema/SemaChecking.cpp
parentfa8edb11e1bda901ccf248f5fad63238f61ff3c6 (diff)
downloadbcm5719-llvm-d50a27111cef3335d52de9056a60b081aa57b6df.tar.gz
bcm5719-llvm-d50a27111cef3335d52de9056a60b081aa57b6df.zip
Kill CK_Unknown and flesh out the documentation for the existing CastKinds.
llvm-svn: 119331
Diffstat (limited to 'clang/lib/Sema/SemaChecking.cpp')
-rw-r--r--clang/lib/Sema/SemaChecking.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/clang/lib/Sema/SemaChecking.cpp b/clang/lib/Sema/SemaChecking.cpp
index e11d68ca19d..83d7c0760ef 100644
--- a/clang/lib/Sema/SemaChecking.cpp
+++ b/clang/lib/Sema/SemaChecking.cpp
@@ -2280,8 +2280,6 @@ IntRange GetExprRange(ASTContext &C, Expr *E, unsigned MaxWidth) {
IntRange OutputTypeRange = IntRange::forValueOfType(C, CE->getType());
bool isIntegerCast = (CE->getCastKind() == CK_IntegralCast);
- if (!isIntegerCast && CE->getCastKind() == CK_Unknown)
- isIntegerCast = CE->getSubExpr()->getType()->isIntegerType();
// Assume that non-integer casts can span the full range of the type.
if (!isIntegerCast)
OpenPOWER on IntegriCloud