aboutsummaryrefslogtreecommitdiff
path: root/Sema/SemaDecl.cpp
diff options
context:
space:
mode:
authorSteve Naroff <snaroff@apple.com>2007-11-12 19:48:27 +0000
committerSteve Naroff <snaroff@apple.com>2007-11-12 19:48:27 +0000
commitbd278bc1a52657cd22140c50db4a5646e65bd89c (patch)
tree715a0aaddce0fbe31d9c266e7a73a091814d87a6 /Sema/SemaDecl.cpp
parent11508212aacde5199b0475a578a481febf5dc067 (diff)
Fix regression to Sema::ObjcActOnStartOfMethodDef()...need to initialize InvalidType field to false.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44023 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'Sema/SemaDecl.cpp')
-rw-r--r--Sema/SemaDecl.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/Sema/SemaDecl.cpp b/Sema/SemaDecl.cpp
index 62089141cb..cd47b94c19 100644
--- a/Sema/SemaDecl.cpp
+++ b/Sema/SemaDecl.cpp
@@ -981,6 +981,7 @@ void Sema::ObjcActOnStartOfMethodDef(Scope *FnBodyScope, DeclTy *D) {
// Insert the invisible arguments, self and _cmd!
PI.Ident = &Context.Idents.get("self");
PI.IdentLoc = SourceLocation(); // synthesized vars have a null location.
+ PI.InvalidType = false;
if (MDecl->isInstance()) {
QualType selfTy = Context.getObjcInterfaceType(MDecl->getClassInterface());
selfTy = Context.getPointerType(selfTy);