diff options
| author | Chris Lattner <sabre@nondot.org> | 2002-07-25 06:17:51 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2002-07-25 06:17:51 +0000 |
| commit | 10073a9080498f8ce8ad87b425d8bbb5b6536b67 (patch) | |
| tree | 10569e0dce9be5b0fc6bb11e55babf9b9f2c170f /llvm/lib/Transforms | |
| parent | e680139c346e2e1e09f4574995cca1874abe7f28 (diff) | |
| download | bcm5719-llvm-10073a9080498f8ce8ad87b425d8bbb5b6536b67.tar.gz bcm5719-llvm-10073a9080498f8ce8ad87b425d8bbb5b6536b67.zip | |
*** empty log message ***
llvm-svn: 3075
Diffstat (limited to 'llvm/lib/Transforms')
| -rw-r--r-- | llvm/lib/Transforms/IPO/MutateStructTypes.cpp | 2 | ||||
| -rw-r--r-- | llvm/lib/Transforms/IPO/OldPoolAllocate.cpp | 1 | ||||
| -rw-r--r-- | llvm/lib/Transforms/Scalar/Reassociate.cpp | 2 | ||||
| -rw-r--r-- | llvm/lib/Transforms/TransformInternals.cpp | 4 |
4 files changed, 5 insertions, 4 deletions
diff --git a/llvm/lib/Transforms/IPO/MutateStructTypes.cpp b/llvm/lib/Transforms/IPO/MutateStructTypes.cpp index 4058a3d03aa..174f7a102b1 100644 --- a/llvm/lib/Transforms/IPO/MutateStructTypes.cpp +++ b/llvm/lib/Transforms/IPO/MutateStructTypes.cpp @@ -108,7 +108,7 @@ const Type *MutateStructTypes::ConvertType(const Type *Ty) { // void MutateStructTypes::AdjustIndices(const CompositeType *OldTy, vector<Value*> &Idx, - unsigned i = 0) { + unsigned i) { assert(i < Idx.size() && "i out of range!"); const CompositeType *NewCT = cast<CompositeType>(ConvertType(OldTy)); if (NewCT == OldTy) return; // No adjustment unless type changes diff --git a/llvm/lib/Transforms/IPO/OldPoolAllocate.cpp b/llvm/lib/Transforms/IPO/OldPoolAllocate.cpp index e74c8b22c15..c22d53ef917 100644 --- a/llvm/lib/Transforms/IPO/OldPoolAllocate.cpp +++ b/llvm/lib/Transforms/IPO/OldPoolAllocate.cpp @@ -1759,5 +1759,6 @@ bool PoolAllocate::run(Module &M) { // Pass *createPoolAllocatePass() { assert(0 && "Pool allocator disabled!"); + return 0; //return new PoolAllocate(); } diff --git a/llvm/lib/Transforms/Scalar/Reassociate.cpp b/llvm/lib/Transforms/Scalar/Reassociate.cpp index 05758039d94..a6ad88a9ea6 100644 --- a/llvm/lib/Transforms/Scalar/Reassociate.cpp +++ b/llvm/lib/Transforms/Scalar/Reassociate.cpp @@ -33,7 +33,7 @@ static Statistic<> NumSwapped("reassociate\t- Number of insts with operands swap namespace { class Reassociate : public FunctionPass { - map<BasicBlock*, unsigned> RankMap; + std::map<BasicBlock*, unsigned> RankMap; public: bool runOnFunction(Function &F); diff --git a/llvm/lib/Transforms/TransformInternals.cpp b/llvm/lib/Transforms/TransformInternals.cpp index 05bc69438b6..f8476231cf9 100644 --- a/llvm/lib/Transforms/TransformInternals.cpp +++ b/llvm/lib/Transforms/TransformInternals.cpp @@ -52,7 +52,7 @@ static const Type *getStructOffsetStep(const StructType *STy, unsigned &Offset, // const Type *getStructOffsetType(const Type *Ty, unsigned &Offset, std::vector<Value*> &Indices, - bool StopEarly = true) { + bool StopEarly) { if (Offset == 0 && StopEarly && !Indices.empty()) return Ty; // Return the leaf type @@ -87,7 +87,7 @@ const Type *getStructOffsetType(const Type *Ty, unsigned &Offset, // const Type *ConvertableToGEP(const Type *Ty, Value *OffsetVal, std::vector<Value*> &Indices, - BasicBlock::iterator *BI = 0) { + BasicBlock::iterator *BI) { const CompositeType *CompTy = dyn_cast<CompositeType>(Ty); if (CompTy == 0) return 0; |

