Fix a function that only calls itself. The const_cast needs to remove the
authorRichard Trieu <rtrieu@google.com>
Thu, 18 Dec 2014 00:06:45 +0000 (00:06 +0000)
committerRichard Trieu <rtrieu@google.com>
Thu, 18 Dec 2014 00:06:45 +0000 (00:06 +0000)
const so that the other overloaded function will be called.

llvm-svn: 224478

clang/include/clang/Analysis/Analyses/ThreadSafetyTIL.h

index e06593c..492a8b8 100644 (file)
@@ -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();
   }
 };