aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2012-03-24 13:59:42 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2012-03-24 13:59:42 +0000
commitd961ea91e14fdf4047db3e891def9951ee7afde1 (patch)
treec2920730fc920ae710caffbf7e15e627d81f39c3
parent539a2308a9c6c31144930f13830cd5354d07a0e1 (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.h2
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));
}
};