aboutsummaryrefslogtreecommitdiff
path: root/lib/Sema/SemaDeclCXX.cpp
diff options
context:
space:
mode:
authorEli Friedman <eli.friedman@gmail.com>2012-01-21 04:44:06 +0000
committerEli Friedman <eli.friedman@gmail.com>2012-01-21 04:44:06 +0000
commit78a542478dd63c2789816dcc1cdab5c9a6eef99b (patch)
tree62ae9ce01e0011b91fb3bb75e7dae52d6a431a85 /lib/Sema/SemaDeclCXX.cpp
parent65ba94814f667e6ea1fcbf0896ad496bb7010335 (diff)
Fix some comments relating to ExpressionEvaluationContexts. Get rid of a couple of uses of ConstantEvaluated which don't make sense.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@148624 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaDeclCXX.cpp')
-rw-r--r--lib/Sema/SemaDeclCXX.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/Sema/SemaDeclCXX.cpp b/lib/Sema/SemaDeclCXX.cpp
index fc16b9bbaf..d68c851d63 100644
--- a/lib/Sema/SemaDeclCXX.cpp
+++ b/lib/Sema/SemaDeclCXX.cpp
@@ -10751,8 +10751,7 @@ void Sema::MarkVTableUsed(SourceLocation Loc, CXXRecordDecl *Class,
// not have a vtable.
if (!Class->isDynamicClass() || Class->isDependentContext() ||
CurContext->isDependentContext() ||
- ExprEvalContexts.back().Context == Unevaluated ||
- ExprEvalContexts.back().Context == ConstantEvaluated)
+ ExprEvalContexts.back().Context == Unevaluated)
return;
// Try to insert this class into the map.