From d961ea91e14fdf4047db3e891def9951ee7afde1 Mon Sep 17 00:00:00 2001 From: Benjamin Kramer Date: Sat, 24 Mar 2012 13:59:42 +0000 Subject: [PATCH] Don't cast away constness. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@153381 91177308-0d34-0410-b5e6-96231b3b80d8 --- .../clang/StaticAnalyzer/Core/BugReporter/BugReporterVisitor.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 BugReporterVisitorImpl : public BugReporterVisitor { virtual BugReporterVisitor *clone() const { - return new DERIVED(*(DERIVED *)this); + return new DERIVED(*static_cast(this)); } }; -- 2.50.1