diff options
author | Anders Carlsson <andersca@mac.com> | 2009-12-29 07:07:36 +0000 |
---|---|---|
committer | Anders Carlsson <andersca@mac.com> | 2009-12-29 07:07:36 +0000 |
commit | f5f7d864f5067d1ea4bff7fcf41b53a43b7b48ba (patch) | |
tree | 63fbd0c67662313316f86c364c4c35fb8ef09ee1 /lib/Sema/Sema.cpp | |
parent | bd64729ac6de8fed320e7a722597cc5444709c63 (diff) |
Get rid of FixedWidthIntType, as suggested by Chris and Eli.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@92246 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/Sema.cpp')
-rw-r--r-- | lib/Sema/Sema.cpp | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/lib/Sema/Sema.cpp b/lib/Sema/Sema.cpp index 6119b13b73..40ad90a129 100644 --- a/lib/Sema/Sema.cpp +++ b/lib/Sema/Sema.cpp @@ -389,12 +389,6 @@ static bool getIntProperties(ASTContext &C, const Type *T, return true; } - if (const FixedWidthIntType *FWIT = dyn_cast<FixedWidthIntType>(T)) { - BitWidth = FWIT->getWidth(); - Signed = FWIT->isSigned(); - return true; - } - return false; } @@ -655,8 +649,7 @@ static void CheckImplicitConversion(Sema &S, Expr *E, QualType T) { } // If the target is integral, always warn. - if ((TargetBT && TargetBT->isInteger()) || - isa<FixedWidthIntType>(Target)) + if ((TargetBT && TargetBT->isInteger())) // TODO: don't warn for integer values? return DiagnoseImpCast(S, E, T, diag::warn_impcast_float_integer); |