X-Git-Url: http://plrg.eecs.uci.edu/git/?p=oota-llvm.git;a=blobdiff_plain;f=lib%2FIR%2FLLVMContextImpl.h;h=f018dc737508a134120d9585b3c8608338fe5d9e;hp=e743ec3abc45ca22b7d9b4ad9cdd30269f09e707;hb=633e9689bfade2b027561f29546379653111ca9e;hpb=1f69d31727db869ad2dc3dc1b31c358095b010c4 diff --git a/lib/IR/LLVMContextImpl.h b/lib/IR/LLVMContextImpl.h index e743ec3abc4..f018dc73750 100644 --- a/lib/IR/LLVMContextImpl.h +++ b/lib/IR/LLVMContextImpl.h @@ -104,9 +104,8 @@ struct AnonStructTypeKeyInfo { bool isPacked; KeyTy(const ArrayRef& E, bool P) : ETypes(E), isPacked(P) {} - KeyTy(const StructType* ST) : - ETypes(ArrayRef(ST->element_begin(), ST->element_end())), - isPacked(ST->isPacked()) {} + KeyTy(const StructType *ST) + : ETypes(ST->elements()), isPacked(ST->isPacked()) {} bool operator==(const KeyTy& that) const { if (isPacked != that.isPacked) return false;