]> granicus.if.org Git - clang/commitdiff
Avoid 'size_t' typedef in the unittest ObjC code
authorAlex Lorenz <arphaman@gmail.com>
Wed, 30 Aug 2017 15:37:30 +0000 (15:37 +0000)
committerAlex Lorenz <arphaman@gmail.com>
Wed, 30 Aug 2017 15:37:30 +0000 (15:37 +0000)
This should fix
http://bb.pgr.jp/builders/test-clang-msc-x64-on-i686-linux-RA

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@312133 91177308-0d34-0410-b5e6-96231b3b80d8

unittests/Tooling/ASTSelectionTest.cpp

index 6b76bf06cb59942e9a301c014bdb17332b28aadc..773b6713e12f258e7c8ecfa398fe9054c9e2f83b 100644 (file)
@@ -535,10 +535,10 @@ void selectProp(I *i) {
 i.prop = 21;
 }
 
-typedef unsigned int size_t;
+
 @interface NSMutableArray
-- (id)objectAtIndexedSubscript:(size_t)index;
-- (void)setObject:(id)object atIndexedSubscript:(size_t)index;
+- (id)objectAtIndexedSubscript:(unsigned int)index;
+- (void)setObject:(id)object atIndexedSubscript:(unsigned int)index;
 @end
 
 void selectSubscript(NSMutableArray *array, I *i) {