summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaDecl.cpp
diff options
context:
space:
mode:
authorFariborz Jahanian <fjahanian@apple.com>2009-11-25 23:07:42 +0000
committerFariborz Jahanian <fjahanian@apple.com>2009-11-25 23:07:42 +0000
commit04b258cc9eeb3b94d37e40f068f56e894318397b (patch)
treef4ea93c048aba56a76e1140bb0ac7acab17c6007 /clang/lib/Sema/SemaDecl.cpp
parent5bc5cbe2a24d53c8bbbcce1a72f156957af45fde (diff)
downloadbcm5719-llvm-04b258cc9eeb3b94d37e40f068f56e894318397b.tar.gz
bcm5719-llvm-04b258cc9eeb3b94d37e40f068f56e894318397b.zip
Allow user re-definition of SEL as well as accessing its fields.
This fixes pr5611. llvm-svn: 89895
Diffstat (limited to 'clang/lib/Sema/SemaDecl.cpp')
-rw-r--r--clang/lib/Sema/SemaDecl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Sema/SemaDecl.cpp b/clang/lib/Sema/SemaDecl.cpp
index c0a409d043a..31c6ab543dd 100644
--- a/clang/lib/Sema/SemaDecl.cpp
+++ b/clang/lib/Sema/SemaDecl.cpp
@@ -681,7 +681,7 @@ void Sema::MergeTypeDefDecl(TypedefDecl *New, LookupResult &OldDecls) {
case 3:
if (!TypeID->isStr("SEL"))
break;
- Context.ObjCSELRedefinitionType = New->getUnderlyingType();
+ Context.ObjCSelRedefinitionType = New->getUnderlyingType();
// Install the built-in type for 'SEL', ignoring the current definition.
New->setTypeForDecl(Context.getObjCSelType().getTypePtr());
return;
OpenPOWER on IntegriCloud