diff options
author | Mike Stump <mrs@apple.com> | 2009-11-03 23:25:48 +0000 |
---|---|---|
committer | Mike Stump <mrs@apple.com> | 2009-11-03 23:25:48 +0000 |
commit | 53f9ded62b69c259f96be86fecc3c15e2398d404 (patch) | |
tree | 7cba35759b6638041ee875df4b302a5448e18a5b /clang/lib/Sema/SemaStmt.cpp | |
parent | 3cf81317e40d52a485aa38a00dbb0fa31bd2373e (diff) | |
download | bcm5719-llvm-53f9ded62b69c259f96be86fecc3c15e2398d404.tar.gz bcm5719-llvm-53f9ded62b69c259f96be86fecc3c15e2398d404.zip |
Refine volatile handling, specifically, we must have the canonical
type to look at the volatile specifier. I found these all from just
hand auditing the code.
llvm-svn: 85967
Diffstat (limited to 'clang/lib/Sema/SemaStmt.cpp')
-rw-r--r-- | clang/lib/Sema/SemaStmt.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Sema/SemaStmt.cpp b/clang/lib/Sema/SemaStmt.cpp index 14534243850..6a65bd1dd1e 100644 --- a/clang/lib/Sema/SemaStmt.cpp +++ b/clang/lib/Sema/SemaStmt.cpp @@ -70,7 +70,7 @@ void Sema::DiagnoseUnusedExprResult(const Stmt *S) { SourceLocation Loc; SourceRange R1, R2; - if (!E->isUnusedResultAWarning(Loc, R1, R2)) + if (!E->isUnusedResultAWarning(Loc, R1, R2, Context)) return; // Okay, we have an unused result. Depending on what the base expression is, |