summaryrefslogtreecommitdiffstats
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
commitf392d4ba30aa4c8c1bcd1c1e31ba9c7fa80bfc62 (patch)
tree7c89ea3f3e5d04b0c60146eb384321a33a70a3bf
parente2c1e6490995b321b6df393f05a9b99086085102 (diff)
downloadbcm5719-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.h2
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));
}
};
OpenPOWER on IntegriCloud