From: Nick Lewycky Date: Tue, 5 Feb 2013 06:20:31 +0000 (+0000) Subject: Test for virtual instead of pure here. It has the exact same effect, and John X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7cea1487602536e91a2c36511f5ad56ff1b2dc68;p=clang Test for virtual instead of pure here. It has the exact same effect, and John claims it will improve performance. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@174341 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Sema/SemaExpr.cpp b/lib/Sema/SemaExpr.cpp index 0d046f15aa..d0aa6973b7 100644 --- a/lib/Sema/SemaExpr.cpp +++ b/lib/Sema/SemaExpr.cpp @@ -11192,7 +11192,7 @@ void Sema::MarkDeclRefReferenced(DeclRefExpr *E) { // if it's a qualified reference. bool OdrUse = true; if (CXXMethodDecl *Method = dyn_cast(E->getDecl())) - if (Method->isPure()) + if (Method->isVirtual()) OdrUse = false; MarkExprReferenced(*this, E->getLocation(), E->getDecl(), E, OdrUse); }