Author: rtrieu Date: Wed Dec 17 18:06:45 2014 New Revision: 224478 URL: http://llvm.org/viewvc/llvm-project?rev=224478&view=rev Log: Fix a function that only calls itself. The const_cast needs to remove the const so that the other overloaded function will be called.
Modified: cfe/trunk/include/clang/Analysis/Analyses/ThreadSafetyTIL.h Modified: cfe/trunk/include/clang/Analysis/Analyses/ThreadSafetyTIL.h URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Analysis/Analyses/ThreadSafetyTIL.h?rev=224478&r1=224477&r2=224478&view=diff ============================================================================== --- cfe/trunk/include/clang/Analysis/Analyses/ThreadSafetyTIL.h (original) +++ cfe/trunk/include/clang/Analysis/Analyses/ThreadSafetyTIL.h Wed Dec 17 18:06:45 2014 @@ -1369,7 +1369,7 @@ public: ArrayRef<BasicBlock*> successors(); ArrayRef<BasicBlock*> successors() const { - return const_cast<const Terminator*>(this)->successors(); + return const_cast<Terminator*>(this)->successors(); } }; _______________________________________________ cfe-commits mailing list cfe-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits