diff options
author | Anders Carlsson <andersca@mac.com> | 2009-12-09 03:01:51 +0000 |
---|---|---|
committer | Anders Carlsson <andersca@mac.com> | 2009-12-09 03:01:51 +0000 |
commit | b6cc91be4da4f55c7e3dca87ecfdb532b33c83ca (patch) | |
tree | 2464c7a7cd676c431220df9f65891499ce5cb050 /lib/Sema/Sema.h | |
parent | 17f4da8f150f6b9dfb571cebd6299b06948e5385 (diff) |
Pass the current SourceLocation to getAssignOperatorMethod, fixing a crash when the assign operator method needs to be instantiated. Doug, please review the updated default-assignment-operator.cpp change.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@90935 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/Sema.h')
-rw-r--r-- | lib/Sema/Sema.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Sema/Sema.h b/lib/Sema/Sema.h index a7eb0c6d88..d176e8b697 100644 --- a/lib/Sema/Sema.h +++ b/lib/Sema/Sema.h @@ -1831,7 +1831,8 @@ public: /// getAssignOperatorMethod - Returns the default copy assignmment operator /// for the class. - CXXMethodDecl *getAssignOperatorMethod(ParmVarDecl *Decl, + CXXMethodDecl *getAssignOperatorMethod(SourceLocation CurrentLocation, + ParmVarDecl *Decl, CXXRecordDecl *ClassDecl); /// MaybeBindToTemporary - If the passed in expression has a record type with |