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 | d961ea91e14fdf4047db3e891def9951ee7afde1 (patch) | |
tree | c2920730fc920ae710caffbf7e15e627d81f39c3 | |
parent | 539a2308a9c6c31144930f13830cd5354d07a0e1 (diff) |
Don't cast away constness.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@153381 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | include/clang/StaticAnalyzer/Core/BugReporter/BugReporterVisitor.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/clang/StaticAnalyzer/Core/BugReporter/BugReporterVisitor.h b/include/clang/StaticAnalyzer/Core/BugReporter/BugReporterVisitor.h index 6bca6411c3..7e665ceda5 100644 --- a/include/clang/StaticAnalyzer/Core/BugReporter/BugReporterVisitor.h +++ b/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)); } }; |