From aa07e16b09ff22f947884625d5765ee61d25c681 Mon Sep 17 00:00:00 2001 From: Richard Trieu Date: Thu, 18 Dec 2014 00:06:45 +0000 Subject: [PATCH] Fix a function that only calls itself. The const_cast needs to remove the const so that the other overloaded function will be called. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@224478 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/clang/Analysis/Analyses/ThreadSafetyTIL.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/clang/Analysis/Analyses/ThreadSafetyTIL.h b/include/clang/Analysis/Analyses/ThreadSafetyTIL.h index e06593c690..492a8b8f9d 100644 --- a/include/clang/Analysis/Analyses/ThreadSafetyTIL.h +++ b/include/clang/Analysis/Analyses/ThreadSafetyTIL.h @@ -1369,7 +1369,7 @@ public: ArrayRef successors(); ArrayRef successors() const { - return const_cast(this)->successors(); + return const_cast(this)->successors(); } }; -- 2.40.0