aboutsummaryrefslogtreecommitdiff
path: root/lib/Analysis/GRSimpleVals.cpp
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2008-04-10 16:05:13 +0000
committerTed Kremenek <kremenek@apple.com>2008-04-10 16:05:13 +0000
commit4d35dacf85fc9fb257baa1a846abef2361a1c426 (patch)
treedbacd1773c937484321d4e94e71435465ad140ee /lib/Analysis/GRSimpleVals.cpp
parente13594279a952537ac903325efff57e3edca79d9 (diff)
Fixed regressions in error reporting due to copy-paste errors (using the "begin"
iterator instead of "end") and not implementing "getDescription()" for Nil argument checks. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@49485 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/GRSimpleVals.cpp')
-rw-r--r--lib/Analysis/GRSimpleVals.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/Analysis/GRSimpleVals.cpp b/lib/Analysis/GRSimpleVals.cpp
index e7b456ff21..960476dff0 100644
--- a/lib/Analysis/GRSimpleVals.cpp
+++ b/lib/Analysis/GRSimpleVals.cpp
@@ -135,7 +135,7 @@ public:
virtual void EmitWarnings(BugReporter& BR) {
GRExprEngine& Eng = BR.getEngine();
GenericEmitWarnings(BR, *this, Eng.undef_results_begin(),
- Eng.undef_results_begin());
+ Eng.undef_results_end());
}
};
@@ -152,7 +152,7 @@ public:
virtual void EmitWarnings(BugReporter& BR) {
GRExprEngine& Eng = BR.getEngine();
GenericEmitWarnings(BR, *this, Eng.bad_calls_begin(),
- Eng.bad_calls_begin());
+ Eng.bad_calls_end());
}
};
@@ -214,7 +214,7 @@ public:
GRExprEngine& Eng = BR.getEngine();
for (GRExprEngine::UndefArgsTy::iterator I=Eng.msg_expr_undef_arg_begin(),
- E = Eng.msg_expr_undef_arg_begin(); I!=E; ++I) {
+ E = Eng.msg_expr_undef_arg_end(); I!=E; ++I) {
// Generate a report for this bug.
Report report(*this, I->second);
@@ -283,7 +283,7 @@ public:
virtual void EmitWarnings(BugReporter& BR) {
GRExprEngine& Eng = BR.getEngine();
GenericEmitWarnings(BR, *this, Eng.ret_stackaddr_begin(),
- Eng.ret_stackaddr_begin());
+ Eng.ret_stackaddr_end());
}
};