diff options
Diffstat (limited to 'contrib/llvm/lib/IR/SymbolTableListTraitsImpl.h')
-rw-r--r-- | contrib/llvm/lib/IR/SymbolTableListTraitsImpl.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/contrib/llvm/lib/IR/SymbolTableListTraitsImpl.h b/contrib/llvm/lib/IR/SymbolTableListTraitsImpl.h index 50573d8..6ddab6b 100644 --- a/contrib/llvm/lib/IR/SymbolTableListTraitsImpl.h +++ b/contrib/llvm/lib/IR/SymbolTableListTraitsImpl.h @@ -81,11 +81,10 @@ void SymbolTableListTraits<ValueSubClass>::removeNodeFromList( template <typename ValueSubClass> void SymbolTableListTraits<ValueSubClass>::transferNodesFromList( - SymbolTableListTraits &L2, ilist_iterator<ValueSubClass> first, - ilist_iterator<ValueSubClass> last) { + SymbolTableListTraits &L2, iterator first, iterator last) { // We only have to do work here if transferring instructions between BBs ItemParentClass *NewIP = getListOwner(), *OldIP = L2.getListOwner(); - if (NewIP == OldIP) return; // No work to do at all... + assert(NewIP != OldIP && "Expected different list owners"); // We only have to update symbol table entries if we are transferring the // instructions to a different symtab object... |