projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f288ff7
)
Remove wierd case that can never happen
author
Chris Lattner
<sabre@nondot.org>
Tue, 25 Feb 2003 20:27:09 +0000
(20:27 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Tue, 25 Feb 2003 20:27:09 +0000
(20:27 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5623
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Target/TargetData.cpp
patch
|
blob
|
history
diff --git
a/lib/Target/TargetData.cpp
b/lib/Target/TargetData.cpp
index 20e7522e5036f8fef6c6798ae06108d82d6e7a99..96c6ba9bfec365afd36de5feadb3266d3b531623 100644
(file)
--- 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