summaryrefslogtreecommitdiffstats
path: root/clang
diff options
context:
space:
mode:
authorNick Lewycky <nicholas@mxc.ca>2013-02-05 06:20:31 +0000
committerNick Lewycky <nicholas@mxc.ca>2013-02-05 06:20:31 +0000
commit192542ce384d0c99866b4b95414117429a215c5b (patch)
tree83a1d78c4cf929db031a24b68dd12268e1b813cd /clang
parent27e7ef326ab25027c74638bc33aaff7429527573 (diff)
downloadbcm5719-llvm-192542ce384d0c99866b4b95414117429a215c5b.tar.gz
bcm5719-llvm-192542ce384d0c99866b4b95414117429a215c5b.zip
Test for virtual instead of pure here. It has the exact same effect, and John
claims it will improve performance. llvm-svn: 174341
Diffstat (limited to 'clang')
-rw-r--r--clang/lib/Sema/SemaExpr.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Sema/SemaExpr.cpp b/clang/lib/Sema/SemaExpr.cpp
index 0d046f15aa3..d0aa6973b70 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<CXXMethodDecl>(E->getDecl()))
- if (Method->isPure())
+ if (Method->isVirtual())
OdrUse = false;
MarkExprReferenced(*this, E->getLocation(), E->getDecl(), E, OdrUse);
}
OpenPOWER on IntegriCloud