From 41562398b6524760762a1d522c090710db6b4928 Mon Sep 17 00:00:00 2001 From: Reid Spencer Date: Thu, 2 Nov 2006 08:23:44 +0000 Subject: [PATCH] Remove unused variable. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31376 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/VMCore/Function.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/VMCore/Function.cpp b/lib/VMCore/Function.cpp index eb3bf250a73..641cb9fe7e3 100644 --- a/lib/VMCore/Function.cpp +++ b/lib/VMCore/Function.cpp @@ -150,7 +150,7 @@ void Function::renameLocalSymbols() { 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(LPI->first)) { + if (isa(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()) {