diff --git a/include/llvm/Target/TargetData.h b/include/llvm/Target/TargetData.h index 5dd41bfd6ac..edd6b26540f 100644 --- a/include/llvm/Target/TargetData.h +++ b/include/llvm/Target/TargetData.h @@ -61,7 +61,7 @@ public: // stores that include the implicit form of getelementptr. // unsigned getIndexedOffset(const Type *Ty, - const vector &Indices) const; + const vector &Indices) const; inline const StructLayout *getStructLayout(const StructType *Ty) const { return (const StructLayout*)((const Type*)Ty)->getOrCreateAnnotation(AID); diff --git a/lib/Target/TargetData.cpp b/lib/Target/TargetData.cpp index a2383d12a2a..b290f29b856 100644 --- a/lib/Target/TargetData.cpp +++ b/lib/Target/TargetData.cpp @@ -146,7 +146,7 @@ unsigned char TargetData::getTypeAlignment(const Type *Ty) const { } unsigned TargetData::getIndexedOffset(const Type *ptrTy, - const vector &Idx) const { + const vector &Idx) const { const PointerType *PtrTy = cast(ptrTy); unsigned Result = 0;