summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaExpr.cpp
diff options
context:
space:
mode:
authorJohn McCall <rjmccall@apple.com>2009-11-30 22:55:35 +0000
committerJohn McCall <rjmccall@apple.com>2009-11-30 22:55:35 +0000
commit132f3133ae348126993979867cf58de673016d4a (patch)
tree8e8990627f016aa86dd9f0ab7e835d688af1e32b /clang/lib/Sema/SemaExpr.cpp
parent10eae1851d3f6cfa9ab665fc2bd54a3ff57293d8 (diff)
downloadbcm5719-llvm-132f3133ae348126993979867cf58de673016d4a.tar.gz
bcm5719-llvm-132f3133ae348126993979867cf58de673016d4a.zip
Remove all of Sema's explicit uses of OverloadedFunctionDecl except for
those associated with TemplateNames. llvm-svn: 90162
Diffstat (limited to 'clang/lib/Sema/SemaExpr.cpp')
-rw-r--r--clang/lib/Sema/SemaExpr.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/clang/lib/Sema/SemaExpr.cpp b/clang/lib/Sema/SemaExpr.cpp
index 94449e27707..3a97ee5d9d2 100644
--- a/clang/lib/Sema/SemaExpr.cpp
+++ b/clang/lib/Sema/SemaExpr.cpp
@@ -417,8 +417,6 @@ static bool ShouldSnapshotBlockValueReference(BlockSemaInfo *CurBlock,
Sema::OwningExprResult
Sema::BuildDeclRefExpr(NamedDecl *D, QualType Ty, SourceLocation Loc,
const CXXScopeSpec *SS) {
- assert(!isa<OverloadedFunctionDecl>(D));
-
if (Context.getCanonicalType(Ty) == Context.UndeducedAutoTy) {
Diag(Loc,
diag::err_auto_variable_cannot_appear_in_own_initializer)
OpenPOWER on IntegriCloud