diff options
Diffstat (limited to 'llvm/lib/VMCore/Instruction.cpp')
-rw-r--r-- | llvm/lib/VMCore/Instruction.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/llvm/lib/VMCore/Instruction.cpp b/llvm/lib/VMCore/Instruction.cpp index b449c9962fa..eeba47b52e9 100644 --- a/llvm/lib/VMCore/Instruction.cpp +++ b/llvm/lib/VMCore/Instruction.cpp @@ -58,11 +58,8 @@ void Instruction::setParent(BasicBlock *P) { } // Specialize setName to take care of symbol table majik -void Instruction::setName(const std::string &name, SymbolTable *ST) { +void Instruction::setName(const std::string &name) { BasicBlock *P = 0; Function *PP = 0; - assert((ST == 0 || !getParent() || !getParent()->getParent() || - ST == &getParent()->getParent()->getSymbolTable()) && - "Invalid symtab argument!"); if ((P = getParent()) && (PP = P->getParent()) && hasName()) PP->getSymbolTable().remove(this); Value::setName(name); |