diff options
Diffstat (limited to 'lib/Analysis/CheckDeadStores.cpp')
-rw-r--r-- | lib/Analysis/CheckDeadStores.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Analysis/CheckDeadStores.cpp b/lib/Analysis/CheckDeadStores.cpp index 73cb3f786b..d87bfb1964 100644 --- a/lib/Analysis/CheckDeadStores.cpp +++ b/lib/Analysis/CheckDeadStores.cpp @@ -59,19 +59,19 @@ public: case DeadIncrement: BugType = "dead increment"; case Standard: - if (!BugType) BugType = "dead store"; + if (!BugType) BugType = "dead assignment"; msg = "Value stored to '" + name + "' is never read"; break; case Enclosing: - BugType = "dead store"; + BugType = "dead nested assignment"; msg = "Although the value stored to '" + name + "' is used in the enclosing expression, the value is never actually" " read from '" + name + "'"; break; } - BR.EmitBasicReport(BugType, msg.c_str(), L, R); + BR.EmitBasicReport(BugType, "Dead Store", msg.c_str(), L, R); } void CheckVarDecl(VarDecl* VD, Expr* Ex, Expr* Val, |