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:
d4b0511
)
Remove dead variable
author
Chris Lattner
<sabre@nondot.org>
Mon, 21 Jan 2002 22:50:38 +0000
(22:50 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Mon, 21 Jan 2002 22:50:38 +0000
(22:50 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1515
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 0df60fde6798e85ab349809d87cb648cdf97ac6e..d347730ee0b89062a7c063819821ed6246c67f56 100644
(file)
--- a/
lib/Target/TargetData.cpp
+++ b/
lib/Target/TargetData.cpp
@@
-168,7
+168,7
@@
unsigned TargetData::getIndexedOffset(const Type *ptrTy,
// Update Ty to refer to current element
Ty = STy->getElementTypes()[FieldNo];
- } else if (
const ArrayType *ATy = dyn_cast
<const ArrayType>(Ty)) {
+ } 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?");