]> granicus.if.org Git - clang/commitdiff
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.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@224478 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Analysis/Analyses/ThreadSafetyTIL.h

index e06593c6905c41e1fcd9bbfcb680882ea0196bbe..492a8b8f9d6cde6b3d4c246245f931ef72d884b4 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();
   }
 };