diff options
author | Chris Lattner <sabre@nondot.org> | 2002-07-24 22:08:53 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-07-24 22:08:53 +0000 |
commit | fe8041ae397ebbcc311469aa39dfb79f8191b412 (patch) | |
tree | 13d57051a1973eea3fc3a8beb8eca5ca3760ef76 /lib/VMCore/iMemory.cpp | |
parent | 7f4dd472e35569efefbeffef096c490075e3e824 (diff) |
*** empty log message ***
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3065 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore/iMemory.cpp')
-rw-r--r-- | lib/VMCore/iMemory.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/VMCore/iMemory.cpp b/lib/VMCore/iMemory.cpp index 3d0c753d9f..87b5095b0f 100644 --- a/lib/VMCore/iMemory.cpp +++ b/lib/VMCore/iMemory.cpp @@ -14,7 +14,7 @@ static inline const Type *checkType(const Type *Ty) { } AllocationInst::AllocationInst(const Type *Ty, Value *ArraySize, unsigned iTy, - const std::string &Name = "") + const std::string &Name) : Instruction(Ty, iTy, Name) { assert(isa<PointerType>(Ty) && "Can't allocate a non pointer type!"); @@ -50,7 +50,7 @@ const Type *AllocationInst::getAllocatedType() const { // const Type* MemAccessInst::getIndexedType(const Type *Ptr, const std::vector<Value*> &Idx, - bool AllowCompositeLeaf = false) { + bool AllowCompositeLeaf) { if (!isa<PointerType>(Ptr)) return 0; // Type isn't a pointer type! // Handle the special case of the empty set index set... @@ -76,7 +76,7 @@ const Type* MemAccessInst::getIndexedType(const Type *Ptr, //===----------------------------------------------------------------------===// LoadInst::LoadInst(Value *Ptr, const std::vector<Value*> &Idx, - const std::string &Name = "") + const std::string &Name) : MemAccessInst(checkType(getIndexedType(Ptr->getType(), Idx)), Load, Name) { assert(getIndexedType(Ptr->getType(), Idx) && "Load operands invalid!"); Operands.reserve(1+Idx.size()); @@ -87,7 +87,7 @@ LoadInst::LoadInst(Value *Ptr, const std::vector<Value*> &Idx, } -LoadInst::LoadInst(Value *Ptr, const std::string &Name = "") +LoadInst::LoadInst(Value *Ptr, const std::string &Name) : MemAccessInst(cast<PointerType>(Ptr->getType())->getElementType(), Load, Name) { Operands.reserve(1); @@ -125,7 +125,7 @@ StoreInst::StoreInst(Value *Val, Value *Ptr) //===----------------------------------------------------------------------===// GetElementPtrInst::GetElementPtrInst(Value *Ptr, const std::vector<Value*> &Idx, - const std::string &Name = "") + const std::string &Name) : MemAccessInst(PointerType::get(checkType(getIndexedType(Ptr->getType(), Idx, true))), GetElementPtr, Name) { |