Fix assertion crash. I don't have a testcase, but the fix is pretty

obviously correct.

llvm-svn: 77969
This commit is contained in:
Eli Friedman 2009-08-03 09:07:06 +00:00
parent f48daf5823
commit 76df43c08b
1 changed files with 1 additions and 1 deletions

View File

@ -443,7 +443,7 @@ TemplateExprInstantiator::VisitCXXOperatorCallExpr(CXXOperatorCallExpr *E) {
F = Overloads->function_begin(),
FEnd = Overloads->function_end();
F != FEnd; ++F)
Functions.insert(cast<FunctionDecl>(*F));
Functions.insert(*F);
// Add any functions found via argument-dependent lookup.
DeclarationName OpName