aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-06-20 14:36:52 +0000
committerChris Lattner <sabre@nondot.org>2003-06-20 14:36:52 +0000
commit1c6d6c996adcc396d6a5f7cf5a2c20f2841d35a2 (patch)
tree82ce1c5d7185684d3adff6506183966b0adbe4df
parentddafa49edcb450f5481b96cf2ff586fed1ccac8a (diff)
Fix the build. :(
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6797 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Transforms/IPO/PoolAllocate.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Transforms/IPO/PoolAllocate.cpp b/lib/Transforms/IPO/PoolAllocate.cpp
index e4880a5d92..7c4d1c5ad1 100644
--- a/lib/Transforms/IPO/PoolAllocate.cpp
+++ b/lib/Transforms/IPO/PoolAllocate.cpp
@@ -85,7 +85,7 @@ void PoolAllocate::buildIndirectFunctionSets(Module &M) {
if (DSN->isIncomplete())
std::cerr << "Incomplete node " << CSI->getCallInst();
// assert(DSN->isGlobalNode());
- std::vector<GlobalValue*> &Callees = DSN->getGlobals();
+ const std::vector<GlobalValue*> &Callees = DSN->getGlobals();
if (Callees.size() > 0) {
Function *firstCalledF = dyn_cast<Function>(*Callees.begin());
FuncECs.addElement(firstCalledF);
@@ -93,7 +93,7 @@ void PoolAllocate::buildIndirectFunctionSets(Module &M) {
(&CSI->getCallInst(),
firstCalledF));
if (Callees.size() > 1) {
- for (std::vector<GlobalValue*>::iterator CalleesI =
+ for (std::vector<GlobalValue*>::const_iterator CalleesI =
Callees.begin()+1, CalleesE = Callees.end();
CalleesI != CalleesE; ++CalleesI) {
Function *calledF = dyn_cast<Function>(*CalleesI);
@@ -577,7 +577,7 @@ Function* FuncTransform::getFuncClass(Value *V) {
if (!DSN) {
return 0;
}
- std::vector<GlobalValue*> &Callees = DSN->getGlobals();
+ const std::vector<GlobalValue*> &Callees = DSN->getGlobals();
if (Callees.size() > 0) {
Function *calledF = dyn_cast<Function>(*Callees.begin());
assert(PAInfo.FuncECs.findClass(calledF) && "should exist in some eq. class");