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

Reid Spencer reid at x10sys.com
Thu Nov 2 00:23:59 PST 2006



Changes in directory llvm/lib/VMCore:

Function.cpp updated: 1.105 -> 1.106
---
Log message:

Remove unused variable.


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

 Function.cpp |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)


Index: llvm/lib/VMCore/Function.cpp
diff -u llvm/lib/VMCore/Function.cpp:1.105 llvm/lib/VMCore/Function.cpp:1.106
--- llvm/lib/VMCore/Function.cpp:1.105	Sat Mar 25 00:32:47 2006
+++ llvm/lib/VMCore/Function.cpp	Thu Nov  2 02:23:44 2006
@@ -150,7 +150,7 @@
   for (SymbolTable::plane_iterator LPI = LST.plane_begin(), E = LST.plane_end();
        LPI != E; ++LPI)
     // All global symbols are of pointer type, ignore any non-pointer planes.
-    if (const PointerType *CurTy = dyn_cast<PointerType>(LPI->first)) {
+    if (isa<PointerType>(LPI->first)) {
       // Only check if the global plane has any symbols of this type.
       SymbolTable::plane_iterator GPI = GST.find(LPI->first);
       if (GPI != GST.plane_end()) {






More information about the llvm-commits mailing list