forked from OSchip/llvm-project
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:
parent
27e7ef326a
commit
192542ce38
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue