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
This commit is contained in:
Richard Trieu 2014-12-18 00:06:45 +00:00
parent 12c0c8b67f
commit 2b8ff7e461
1 changed files with 1 additions and 1 deletions

View 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();
}
};