forked from OSchip/llvm-project
parent
3054b14059
commit
5162c6a67d
llvm/lib/VMCore
|
@ -150,7 +150,7 @@ void Function::renameLocalSymbols() {
|
||||||
for (SymbolTable::plane_iterator LPI = LST.plane_begin(), E = LST.plane_end();
|
for (SymbolTable::plane_iterator LPI = LST.plane_begin(), E = LST.plane_end();
|
||||||
LPI != E; ++LPI)
|
LPI != E; ++LPI)
|
||||||
// All global symbols are of pointer type, ignore any non-pointer planes.
|
// 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.
|
// Only check if the global plane has any symbols of this type.
|
||||||
SymbolTable::plane_iterator GPI = GST.find(LPI->first);
|
SymbolTable::plane_iterator GPI = GST.find(LPI->first);
|
||||||
if (GPI != GST.plane_end()) {
|
if (GPI != GST.plane_end()) {
|
||||||
|
|
Loading…
Reference in New Issue