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 | 0b66eb38c78129f48cc65bbe6867dfc67abae6df (patch) | |
| tree | 828adbd85e3da21e8441e4fbcab710cee6ce00e8 /clang/lib/Sema/Sema.h | |
| parent | 096619eb523bbcdf9ac5e71adbcc3bae453c8a7c (diff) | |
| download | bcm5719-llvm-0b66eb38c78129f48cc65bbe6867dfc67abae6df.tar.gz bcm5719-llvm-0b66eb38c78129f48cc65bbe6867dfc67abae6df.zip | |
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.
llvm-svn: 102818
Diffstat (limited to 'clang/lib/Sema/Sema.h')
| -rw-r--r-- | clang/lib/Sema/Sema.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Sema/Sema.h b/clang/lib/Sema/Sema.h index a5b43e8a04c..a79b0007f78 100644 --- a/clang/lib/Sema/Sema.h +++ b/clang/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, |

