diff options
author | Ted Kremenek <kremenek@apple.com> | 2011-02-23 01:51:43 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2011-02-23 01:51:43 +0000 |
commit | 55ae319a28f06159d594fddad8d60b4e653ff1bb (patch) | |
tree | 3a514afa78d269e2a00b0a7eba8bb6be9eba9334 /clang/lib/Sema/SemaStmt.cpp | |
parent | db3333df71a997f8d795882eac8599f9227184ae (diff) | |
download | bcm5719-llvm-55ae319a28f06159d594fddad8d60b4e653ff1bb.tar.gz bcm5719-llvm-55ae319a28f06159d594fddad8d60b4e653ff1bb.zip |
Update Sema::DiagRuntimeBehavior() to take an optional Stmt* to indicate the code the diagnostic is associated with.
This Stmt* is unused, but we will use it shortly for pruning diagnostics associated
with unreachable code.
llvm-svn: 126286
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 3815deae58f..94ba93d5c22 100644 --- a/clang/lib/Sema/SemaStmt.cpp +++ b/clang/lib/Sema/SemaStmt.cpp @@ -146,7 +146,7 @@ void Sema::DiagnoseUnusedExprResult(const Stmt *S) { } } - DiagRuntimeBehavior(Loc, PDiag(DiagID) << R1 << R2); + DiagRuntimeBehavior(Loc, S, PDiag(DiagID) << R1 << R2); } StmtResult |