diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2011-10-14 18:45:37 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2011-10-14 18:45:37 +0000 |
commit | b89514a9b84ae625a1cfca1e4dfdf4542c61cee5 (patch) | |
tree | c547581de4165e8a3b2dec2cc579bd21a4983867 /clang/lib/StaticAnalyzer/Checkers/DeadStoresChecker.cpp | |
parent | 47b5b31e616488865468dcec195b3d16b1a15fce (diff) | |
download | bcm5719-llvm-b89514a9b84ae625a1cfca1e4dfdf4542c61cee5.tar.gz bcm5719-llvm-b89514a9b84ae625a1cfca1e4dfdf4542c61cee5.zip |
Change operator<< for raw_ostream and NamedDecl to take a reference instead of a pointer.
Passing a pointer was a bad idea as it collides with the overload for void*.
llvm-svn: 141971
Diffstat (limited to 'clang/lib/StaticAnalyzer/Checkers/DeadStoresChecker.cpp')
-rw-r--r-- | clang/lib/StaticAnalyzer/Checkers/DeadStoresChecker.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/StaticAnalyzer/Checkers/DeadStoresChecker.cpp b/clang/lib/StaticAnalyzer/Checkers/DeadStoresChecker.cpp index df66aaf19ad..901af43c5f2 100644 --- a/clang/lib/StaticAnalyzer/Checkers/DeadStoresChecker.cpp +++ b/clang/lib/StaticAnalyzer/Checkers/DeadStoresChecker.cpp @@ -114,7 +114,7 @@ public: case DeadInit: BugType = "Dead initialization"; - os << "Value stored to '" << V + os << "Value stored to '" << *V << "' during its initialization is never read"; break; @@ -122,7 +122,7 @@ public: BugType = "Dead increment"; case Standard: if (!BugType) BugType = "Dead assignment"; - os << "Value stored to '" << V << "' is never read"; + os << "Value stored to '" << *V << "' is never read"; break; case Enclosing: |