Test for virtual instead of pure here. It has the exact same effect, and John

claims it will improve performance.

llvm-svn: 174341
This commit is contained in:
Nick Lewycky 2013-02-05 06:20:31 +00:00
parent 27e7ef326a
commit 192542ce38
1 changed files with 1 additions and 1 deletions

View File

@ -11192,7 +11192,7 @@ void Sema::MarkDeclRefReferenced(DeclRefExpr *E) {
// if it's a qualified reference.
bool OdrUse = true;
if (CXXMethodDecl *Method = dyn_cast<CXXMethodDecl>(E->getDecl()))
if (Method->isPure())
if (Method->isVirtual())
OdrUse = false;
MarkExprReferenced(*this, E->getLocation(), E->getDecl(), E, OdrUse);
}