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: http://review.tizen.org/git/?a=commitdiff_plain;h=192542ce384d0c99866b4b95414117429a215c5b;p=platform%2Fupstream%2Fllvm.git Test for virtual instead of pure here. It has the exact same effect, and John claims it will improve performance. llvm-svn: 174341 --- diff --git a/clang/lib/Sema/SemaExpr.cpp b/clang/lib/Sema/SemaExpr.cpp index 0d046f1..d0aa697 100644 --- a/clang/lib/Sema/SemaExpr.cpp +++ b/clang/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); }