[llvm-commits] CVS: llvm/lib/VMCore/Function.cpp
Chris Lattner
lattner at cs.uiuc.edu
Sat Jan 10 15:43:00 PST 2004
Changes in directory llvm/lib/VMCore:
Function.cpp updated: 1.61 -> 1.62
---
Log message:
Hrm, another minor cleanup, which I missed before
---
Diffs of the changes: (+1 -1)
Index: llvm/lib/VMCore/Function.cpp
diff -u llvm/lib/VMCore/Function.cpp:1.61 llvm/lib/VMCore/Function.cpp:1.62
--- llvm/lib/VMCore/Function.cpp:1.61 Sat Jan 10 15:39:28 2004
+++ llvm/lib/VMCore/Function.cpp Sat Jan 10 15:42:24 2004
@@ -128,7 +128,7 @@
"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) {
More information about the llvm-commits
mailing list