diff options
| author | Saleem Abdulrasool <compnerd@compnerd.org> | 2017-10-17 17:39:32 +0000 |
|---|---|---|
| committer | Saleem Abdulrasool <compnerd@compnerd.org> | 2017-10-17 17:39:32 +0000 |
| commit | a01ed93e8cfd9de5614472140d0d05f8aec5c720 (patch) | |
| tree | 57ddcb6d871b29ce37a492734d670092a0ed9167 /clang | |
| parent | 94c0eb031ca3e91bbb3168f00ce3a97bf55ce0fc (diff) | |
| download | bcm5719-llvm-a01ed93e8cfd9de5614472140d0d05f8aec5c720.tar.gz bcm5719-llvm-a01ed93e8cfd9de5614472140d0d05f8aec5c720.zip | |
Sema: use new `getNS{,U}IntegerType` for NS{,U}Integer
Use the new helper methods to get the underlying type for NSUInteger,
NSInteger types. This avoids spreading the knowledge of the underlying
types in various sites. For non-LLP64 targets, this has no change.
llvm-svn: 316013
Diffstat (limited to 'clang')
| -rw-r--r-- | clang/lib/Sema/SemaChecking.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/lib/Sema/SemaChecking.cpp b/clang/lib/Sema/SemaChecking.cpp index a440606813a..79263f1e3ac 100644 --- a/clang/lib/Sema/SemaChecking.cpp +++ b/clang/lib/Sema/SemaChecking.cpp @@ -6168,9 +6168,9 @@ shouldNotPrintDirectly(const ASTContext &Context, while (const TypedefType *UserTy = TyTy->getAs<TypedefType>()) { StringRef Name = UserTy->getDecl()->getName(); QualType CastTy = llvm::StringSwitch<QualType>(Name) - .Case("CFIndex", Context.LongTy) - .Case("NSInteger", Context.LongTy) - .Case("NSUInteger", Context.UnsignedLongTy) + .Case("CFIndex", Context.getNSIntegerType()) + .Case("NSInteger", Context.getNSIntegerType()) + .Case("NSUInteger", Context.getNSUIntegerType()) .Case("SInt32", Context.IntTy) .Case("UInt32", Context.UnsignedIntTy) .Default(QualType()); |

