diff --git a/lib/Target/TargetData.cpp b/lib/Target/TargetData.cpp index 20e7522e503..96c6ba9bfec 100644 --- a/lib/Target/TargetData.cpp +++ b/lib/Target/TargetData.cpp @@ -191,9 +191,6 @@ uint64_t TargetData::getIndexedOffset(const Type *ptrTy, // Update Ty to refer to current element Ty = STy->getElementTypes()[FieldNo]; - - } else if (isa(Ty)) { - assert(0 && "Loading from arrays not implemented yet!"); } else { assert(0 && "Indexing type that is not struct or array?"); return 0; // Load directly through ptr