diff options
author | John McCall <rjmccall@apple.com> | 2010-05-01 00:40:08 +0000 |
---|---|---|
committer | John McCall <rjmccall@apple.com> | 2010-05-01 00:40:08 +0000 |
commit | 77bb1aa78bcd26e42c0382043e65a2b03242be4d (patch) | |
tree | 89f763410c2fae9ecf90794c55bef618b65a9d42 /lib/Sema/Sema.h | |
parent | cdb65d8724428664af7394451863b4aa6123f52b (diff) |
It turns out that basically every caller to RequireCompleteDeclContext
already knows what context it's looking in. Just pass that context in
instead of (questionably) recalculating it.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@102818 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/Sema.h')
-rw-r--r-- | lib/Sema/Sema.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Sema/Sema.h b/lib/Sema/Sema.h index a5b43e8a04..a79b0007f7 100644 --- a/lib/Sema/Sema.h +++ b/lib/Sema/Sema.h @@ -2365,7 +2365,7 @@ public: virtual OwningExprResult ActOnFinishFullExpr(ExprArg Expr); // Marks SS invalid if it represents an incomplete type. - bool RequireCompleteDeclContext(CXXScopeSpec &SS); + bool RequireCompleteDeclContext(CXXScopeSpec &SS, DeclContext *DC); DeclContext *computeDeclContext(QualType T); DeclContext *computeDeclContext(const CXXScopeSpec &SS, |