aboutsummaryrefslogtreecommitdiff
path: root/lib/Sema/SemaStmt.cpp
diff options
context:
space:
mode:
authorMike Stump <mrs@apple.com>2009-11-03 23:25:48 +0000
committerMike Stump <mrs@apple.com>2009-11-03 23:25:48 +0000
commitdf317bf71653eeb235da8337b1e8e790f9653aa4 (patch)
tree8addf18adb980760e48943b32c69747e4739b54f /lib/Sema/SemaStmt.cpp
parent014e88d94ff83e3aad4e33b16413a2d1817ec208 (diff)
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. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@85967 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaStmt.cpp')
-rw-r--r--lib/Sema/SemaStmt.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Sema/SemaStmt.cpp b/lib/Sema/SemaStmt.cpp
index 1453424385..6a65bd1dd1 100644
--- a/lib/Sema/SemaStmt.cpp
+++ b/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,