From: Chris Lattner Date: Sat, 10 Jan 2004 21:42:24 +0000 (+0000) Subject: Hrm, another minor cleanup, which I missed before X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=91d7efbf4b786385e0d5d36259cb6a38e917eba8;p=oota-llvm.git Hrm, another minor cleanup, which I missed before git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10753 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/VMCore/Function.cpp b/lib/VMCore/Function.cpp index 4714d3b2584..f98a7c71656 100644 --- a/lib/VMCore/Function.cpp +++ b/lib/VMCore/Function.cpp @@ -128,7 +128,7 @@ void Function::setName(const std::string &name, SymbolTable *ST) { "Invalid symtab argument!"); if ((P = getParent()) && hasName()) P->getSymbolTable().remove(this); Value::setName(name); - if (P && getName() != "") P->getSymbolTable().insert(this); + if (P && hasName()) P->getSymbolTable().insert(this); } void Function::setParent(Module *parent) {