From 2b8ff7e461ccedbc6ebeaee9164ca417ad295472 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. llvm-svn: 224478 --- clang/include/clang/Analysis/Analyses/ThreadSafetyTIL.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clang/include/clang/Analysis/Analyses/ThreadSafetyTIL.h b/clang/include/clang/Analysis/Analyses/ThreadSafetyTIL.h index e06593c6905c..492a8b8f9d6c 100644 --- a/clang/include/clang/Analysis/Analyses/ThreadSafetyTIL.h +++ b/clang/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(); } };