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:
parent
12c0c8b67f
commit
2b8ff7e461
|
|
@ -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();
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue