diff options
-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)); } }; |