diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2004-07-18 00:44:37 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2004-07-18 00:44:37 +0000 |
commit | 518310cb0d136906ff0a99d7a24cb460794de5bf (patch) | |
tree | d8ad6b32edf261c90ce2c190f4c74dc3d044502f /lib/Transforms/IPO/RaiseAllocations.cpp | |
parent | 593eb952281138e1877adbfb11b88b6e32fdd732 (diff) | |
download | llvm-518310cb0d136906ff0a99d7a24cb460794de5bf.tar.gz llvm-518310cb0d136906ff0a99d7a24cb460794de5bf.tar.bz2 llvm-518310cb0d136906ff0a99d7a24cb460794de5bf.tar.xz |
bug 122:
- Replace ConstantPointerRef usage with GlobalValue usage
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14953 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/IPO/RaiseAllocations.cpp')
-rw-r--r-- | lib/Transforms/IPO/RaiseAllocations.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/Transforms/IPO/RaiseAllocations.cpp b/lib/Transforms/IPO/RaiseAllocations.cpp index 5302d8f7a1..ca8b7cc553 100644 --- a/lib/Transforms/IPO/RaiseAllocations.cpp +++ b/lib/Transforms/IPO/RaiseAllocations.cpp @@ -158,9 +158,9 @@ bool RaiseAllocations::run(Module &M) { Changed = true; ++NumRaised; } - } else if (ConstantPointerRef *CPR = dyn_cast<ConstantPointerRef>(U)) { - Users.insert(Users.end(), CPR->use_begin(), CPR->use_end()); - EqPointers.push_back(CPR); + } else if (GlobalValue *GV = dyn_cast<GlobalValue>(U)) { + Users.insert(Users.end(), GV->use_begin(), GV->use_end()); + EqPointers.push_back(GV); } else if (ConstantExpr *CE = dyn_cast<ConstantExpr>(U)) { if (CE->getOpcode() == Instruction::Cast) { Users.insert(Users.end(), CE->use_begin(), CE->use_end()); @@ -207,9 +207,9 @@ bool RaiseAllocations::run(Module &M) { Changed = true; ++NumRaised; } - } else if (ConstantPointerRef *CPR = dyn_cast<ConstantPointerRef>(U)) { - Users.insert(Users.end(), CPR->use_begin(), CPR->use_end()); - EqPointers.push_back(CPR); + } else if (GlobalValue *GV = dyn_cast<GlobalValue>(U)) { + Users.insert(Users.end(), GV->use_begin(), GV->use_end()); + EqPointers.push_back(GV); } else if (ConstantExpr *CE = dyn_cast<ConstantExpr>(U)) { if (CE->getOpcode() == Instruction::Cast) { Users.insert(Users.end(), CE->use_begin(), CE->use_end()); |