diff options
author | Chris Lattner <sabre@nondot.org> | 2003-02-25 20:27:09 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2003-02-25 20:27:09 +0000 |
commit | e45e32d924e8098ff8b67dfb2cd20b37bc81a778 (patch) | |
tree | bf42ee518f2b2f7abfef183c350d74cef17bd6b6 /lib/Target/TargetData.cpp | |
parent | f288ff77747579b82b56fb875673a6383ba4ca2e (diff) |
Remove wierd case that can never happen
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5623 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/TargetData.cpp')
-rw-r--r-- | lib/Target/TargetData.cpp | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/lib/Target/TargetData.cpp b/lib/Target/TargetData.cpp index 20e7522e50..96c6ba9bfe 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<const ArrayType>(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 |