diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2012-03-24 13:59:42 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2012-03-24 13:59:42 +0000 |
commit | f392d4ba30aa4c8c1bcd1c1e31ba9c7fa80bfc62 (patch) | |
tree | 7c89ea3f3e5d04b0c60146eb384321a33a70a3bf | |
parent | e2c1e6490995b321b6df393f05a9b99086085102 (diff) | |
download | bcm5719-llvm-f392d4ba30aa4c8c1bcd1c1e31ba9c7fa80bfc62.tar.gz bcm5719-llvm-f392d4ba30aa4c8c1bcd1c1e31ba9c7fa80bfc62.zip |
Don't cast away constness.
llvm-svn: 153381
-rw-r--r-- | clang/include/clang/StaticAnalyzer/Core/BugReporter/BugReporterVisitor.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/include/clang/StaticAnalyzer/Core/BugReporter/BugReporterVisitor.h b/clang/include/clang/StaticAnalyzer/Core/BugReporter/BugReporterVisitor.h index 6bca6411c30..7e665ceda54 100644 --- a/clang/include/clang/StaticAnalyzer/Core/BugReporter/BugReporterVisitor.h +++ b/clang/include/clang/StaticAnalyzer/Core/BugReporter/BugReporterVisitor.h @@ -90,7 +90,7 @@ public: template <class DERIVED> class BugReporterVisitorImpl : public BugReporterVisitor { virtual BugReporterVisitor *clone() const { - return new DERIVED(*(DERIVED *)this); + return new DERIVED(*static_cast<const DERIVED *>(this)); } }; |