summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaChecking.cpp
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2012-08-06 22:47:24 +0000
committerDavid Blaikie <dblaikie@gmail.com>2012-08-06 22:47:24 +0000
commit131fcb4a064e59cdff1333164f0ee741074e7123 (patch)
treea5528a2d5a19a7a771740d797055d69d77c1b6b6 /clang/lib/Sema/SemaChecking.cpp
parent2da09fd79464bebc24da0c01f383e1cdd0cc7d92 (diff)
downloadbcm5719-llvm-131fcb4a064e59cdff1333164f0ee741074e7123.tar.gz
bcm5719-llvm-131fcb4a064e59cdff1333164f0ee741074e7123.zip
Refactor checks for unevaluated contexts into a common utility function.
The one caller that's surrounded by nearby code manipulating the underlying evaluation context list is left unmodified for readability. Review by Sean Silva and Richard Smith. llvm-svn: 161355
Diffstat (limited to 'clang/lib/Sema/SemaChecking.cpp')
-rw-r--r--clang/lib/Sema/SemaChecking.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Sema/SemaChecking.cpp b/clang/lib/Sema/SemaChecking.cpp
index dce912c4771..f9c993beb12 100644
--- a/clang/lib/Sema/SemaChecking.cpp
+++ b/clang/lib/Sema/SemaChecking.cpp
@@ -4710,7 +4710,7 @@ void AnalyzeImplicitConversions(Sema &S, Expr *OrigE, SourceLocation CC) {
/// conversion
void Sema::CheckImplicitConversions(Expr *E, SourceLocation CC) {
// Don't diagnose in unevaluated contexts.
- if (ExprEvalContexts.back().Context == Sema::Unevaluated)
+ if (isUnevaluatedContext())
return;
// Don't diagnose for value- or type-dependent expressions.
OpenPOWER on IntegriCloud