[llvm-commits] CVS: llvm/lib/VMCore/Function.cpp

Chris Lattner lattner at cs.uiuc.edu
Sat Jan 10 15:40:01 PST 2004


Changes in directory llvm/lib/VMCore:

Function.cpp updated: 1.60 -> 1.61

---
Log message:

Minor cleanup


---
Diffs of the changes:  (+1 -1)

Index: llvm/lib/VMCore/Function.cpp
diff -u llvm/lib/VMCore/Function.cpp:1.60 llvm/lib/VMCore/Function.cpp:1.61
--- llvm/lib/VMCore/Function.cpp:1.60	Mon Jan  5 23:33:02 2004
+++ llvm/lib/VMCore/Function.cpp	Sat Jan 10 15:39:28 2004
@@ -266,5 +266,5 @@
 	 "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);
 }





More information about the llvm-commits mailing list