projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
27e7ef3
)
Test for virtual instead of pure here. It has the exact same effect, and John
author
Nick Lewycky
<nicholas@mxc.ca>
Tue, 5 Feb 2013 06:20:31 +0000
(06:20 +0000)
committer
Nick Lewycky
<nicholas@mxc.ca>
Tue, 5 Feb 2013 06:20:31 +0000
(06:20 +0000)
claims it will improve performance.
llvm-svn: 174341
clang/lib/Sema/SemaExpr.cpp
patch
|
blob
|
history
diff --git
a/clang/lib/Sema/SemaExpr.cpp
b/clang/lib/Sema/SemaExpr.cpp
index
0d046f1
..
d0aa697
100644
(file)
--- 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->is
Pure
())
+ if (Method->is
Virtual
())
OdrUse = false;
MarkExprReferenced(*this, E->getLocation(), E->getDecl(), E, OdrUse);
}