r224478 - Fix a function that only calls itself. The const_cast needs to remove the
Richard Trieu
rtrieu at google.com
Wed Dec 17 16:06:45 PST 2014
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();
}
};
More information about the cfe-commits
mailing list