aboutsummaryrefslogtreecommitdiff
path: root/lib/Sema/SemaType.cpp
diff options
context:
space:
mode:
authorFariborz Jahanian <fjahanian@apple.com>2010-09-08 21:36:35 +0000
committerFariborz Jahanian <fjahanian@apple.com>2010-09-08 21:36:35 +0000
commit56a965c0f77c9e6bffd65cc8f8796442a8527381 (patch)
treed0d6c0425c4d3b56c7fa128c0c0968a8e19b3761 /lib/Sema/SemaType.cpp
parent65b63ec1410f09e1f3cdb847018d678b8f8fc3f7 (diff)
Reverse r113397 until we decide what to do with
use of 'struct objc_object*' for 'is' (and others) in clang. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@113414 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaType.cpp')
-rw-r--r--lib/Sema/SemaType.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/Sema/SemaType.cpp b/lib/Sema/SemaType.cpp
index 06d8b3d4f6..aa30b5c2da 100644
--- a/lib/Sema/SemaType.cpp
+++ b/lib/Sema/SemaType.cpp
@@ -1274,12 +1274,8 @@ TypeSourceInfo *Sema::GetTypeForDeclarator(Declarator &D, Scope *S,
if (BTy->getKind() == BuiltinType::Float)
ArgTy = Context.DoubleTy;
}
- } else if (getLangOptions().ObjC1) {
- if (ArgTy->isLegacyObjCIdType(Context))
- ArgTy = Context.getObjCIdType();
- else if (ArgTy->isLegacyObjCClassType(Context))
- ArgTy = Context.getObjCClassType();
}
+
ArgTys.push_back(ArgTy);
}