aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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));
}
};