aboutsummaryrefslogtreecommitdiff
path: root/lib/Sema/SemaType.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/SemaType.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/SemaType.cpp')
-rw-r--r--lib/Sema/SemaType.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/Sema/SemaType.cpp b/lib/Sema/SemaType.cpp
index e1bd813955..e7b899278f 100644
--- a/lib/Sema/SemaType.cpp
+++ b/lib/Sema/SemaType.cpp
@@ -1059,8 +1059,7 @@ static QualType inferARCLifetimeForPointee(Sema &S, QualType type,
// If we are in an unevaluated context, like sizeof, skip adding a
// qualification.
- } else if (S.ExprEvalContexts.back().Context == Sema::Unevaluated ||
- S.ExprEvalContexts.back().Context == Sema::ConstantEvaluated) {
+ } else if (S.ExprEvalContexts.back().Context == Sema::Unevaluated) {
return type;
// If that failed, give an error and recover using __autoreleasing.